Update a tool
Partial update; only keys present in the body change. PUT is accepted as an alias. The payload shape depends on the tool’s function_type.
Autorisierungen
Scoped API token. Required scopes are listed on each operation in x-required-scopes.
Pfadparameter
ID of the tool.
Body
- API tool
- Built-in or provider tool
Partial update. Only keys present in the body change. "" or null clears access_token, oauth_provider_id, headers, fixed_parameters and response_fields.
URL to call. {{param}} placeholders are filled from the call arguments.
^https?://HTTP method, for example GET or POST.
Request headers. {{param}} placeholders are filled from the call arguments; {{api_key}} resolves to the access token or OAuth token.
Values always sent with the request, not chosen by the agent.
OpenAI-style function schema. Its name becomes the tool name.
Must equal function_definition.name.
Mutually exclusive with oauth_provider_id.
ID of an OAuth connection in your account. Mutually exclusive with access_token.
Phrase the agent says before calling the API.
When the agent should use this tool.
Condition override for one agent. Only applied when agent_id is given.
Fields of the API response the agent may use.
Values extracted from the response and stored as variables for later steps.
Deprecated alias of agent_id.
Voice agent that agent_override_condition applies to.
Antwort
The updated tool, or tool pair.
- API tool
- Built-in or provider tool
- Tool pair
Returned by create and update. Call-forwarding and warm-transfer types return the pair.
ID of the tool.
Tool name as the agent's model sees it. Equals function_definition.name.
What the tool does. Empty for API tools; the model reads function_definition.description.
Always external:api.
"external:api"ID of the integration created for this tool.
ID of the action record backing this tool.
How the API is called.
OpenAI-style function schema the agent's model uses to decide when and how to call the tool.
Only returned by create. True when agent_id was supplied and the tool was enabled for that agent.