# add_project_keywords

**Add project keywords** · Changes data

Add up to 500 keyword attachments to one owned marketplace project.

- Keywords are trimmed, lowercased, validated and deduplicated.
- Existing attachments and their labels remain unchanged.
- Optional `label_ids` apply only to new attachments.
- No removal prompt is needed.
- Inspect readback after an uncertain response before repeating.

**Cost and limits:** Account/project capacity and the credit balance apply; one successful batch costs 5 credits.

## Input

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | `integer` | Required | A marketplace project ID: `list_projects` `data.projects[].marketplaces[].project_id`, not a project group. Minimum 1. Maximum 2147483647. |
| `keywords` | `string[]` | Required | At most 500 inputs before normalization and deduplication. At least 1 item. At most 500 items. |
| `label_ids` | `integer[]` | Optional | Item-label IDs from `list_item_labels`, applied only to newly attached keywords. At most 1000 items. |

## Output

Read this object from the result's `structuredContent`. The result's `content` carries a text version for the model, which is not always the same JSON.

Fields of `data`:

| Name | Type | Required |
| --- | --- | --- |
| `operation` | `string` | Required |
| `committed` | `true` | Required |
| `recovered` | `boolean` | Required |
| `outcome` | `object` | Required |


<details>
<summary>Full input and output JSON Schema</summary>

```json
{
  "inputSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "project_id": {
        "type": "integer",
        "minimum": 1,
        "maximum": 2147483647,
        "description": "A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group."
      },
      "keywords": {
        "minItems": 1,
        "maxItems": 500,
        "type": "array",
        "items": {
          "type": "string",
          "description": "Keyword; after trimming/lowercasing, 1 to 255 Unicode code points without NUL."
        },
        "description": "At most 500 inputs before normalization and deduplication."
      },
      "label_ids": {
        "description": "Item-label IDs from list_item_labels, applied only to newly attached keywords.",
        "maxItems": 1000,
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2147483647
        }
      }
    },
    "required": [
      "project_id",
      "keywords"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "data"
    ],
    "properties": {
      "data": {
        "type": "object",
        "required": [
          "operation",
          "committed",
          "recovered",
          "outcome"
        ],
        "properties": {
          "operation": {
            "type": "string"
          },
          "committed": {
            "const": true
          },
          "recovered": {
            "type": "boolean"
          },
          "outcome": {
            "type": "object",
            "additionalProperties": true
          }
        }
      }
    }
  }
}
```

</details>
