remove_agent_tool
Remove a named tool from a single_prompt agent, supporting any tool type. For versioned agents, changes save as a draft; optionally stack onto an existing draft and publish to make live.
Instructions
Remove a tool (by name) from a single_prompt agent. Works for any tool type (api_call, transfer_call, etc.). For versioned agents the change is saved as a draft — pass draft_id to stack onto an existing draft, then publish_draft to make it live. Use get_agent_prompt to see the agent's current tool names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent ID to remove the tool from | |
| name | Yes | The exact name of the tool to remove | |
| draft_id | No | Existing draft to write into (stacks this change onto the draft's other edits). Omit to create a new draft from the live version. |