Add or remove an agent's tools
set_agent_toolsAdd or remove tools on an agent by key (from list_agent_tools). Removing keeps the tool's settings, so adding it again restores them. Approval settings for app actions do not change: actions that need approval still wait for the person. The answer has previous (the tools before), for undo.
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": {
"agent_id": "<agent_id>"
},
"name": "set_agent_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Tool keys to add. | |
| remove | No | Tool keys to remove. | |
| agent_id | Yes | The agent to change. |