update_ai_action
Update an existing AI Action in Contentful by modifying its name, description, instruction template with variables, model configuration, and test cases within a specified space and environment.
Instructions
Update an existing AI Action
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"aiActionId": "<aiActionId>",
"name": "<name>",
"description": "<description>",
"instruction": "<instruction>",
"configuration": "<configuration>",
"spaceId": "<spaceId>",
"environmentId": "<environmentId>"
},
"name": "update_ai_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aiActionId | Yes | The ID of the AI Action to update | |
| name | Yes | The name of the AI Action | |
| description | Yes | The description of the AI Action | |
| instruction | Yes | The instruction object containing the template and variables | |
| configuration | Yes | The model configuration | |
| testCases | No | Optional array of test cases for the AI Action | |
| spaceId | Yes | The ID of the Contentful space. This must be the space's ID, not its name, ask for this ID if it's unclear. | |
| environmentId | Yes | The ID of the environment within the space, by default this will be called Master | master |