Change the tool selection for an assigned integration
update_agent_integration_toolsChange the tool selection for an assigned integration
Replaces the tool selection for one integration already assigned to a voice agent. The enabledTools field decides which of the integration actions the assistant may call: null means the recommended default set for that integration type, an empty array means the assistant may call nothing, and a list of tool names means exactly those tools and no others. Tool names are the name values from the integration tool catalogue. A list may only name tools the permissions of the integration allow (permitted in the catalogue, see GET /integrations/{id}/permissions); a tool outside them is refused with 422 and error code tool_not_permitted, while a malformed list or an unknown tool name stays a 400 validation_error. The field is required: a body without an enabledTools key is rejected with 400, while an explicit null restores the recommended default set. The new selection is saved and then pushed to the voice engine; if the push fails the request returns 502 but the saved selection is kept, so a retry only has to repeat the push. An integration of another account answers 404 as if it were not assigned.
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": {
"agentId": "<agentId>",
"integrationId": "<integrationId>",
"body": "<body>"
},
"name": "update_agent_integration_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The complete new tool selection. This replaces the previous selection rather than adding to it. | |
| agentId | Yes | Identifier of the voice agent. Accepted either as the public form `agent_12` or as the bare number `12`; the prefix is stripped before the lookup. | |
| integrationId | Yes | Numeric identifier of the integration whose assignment is being changed. This is the integration id, not the assignment id. |