Update an agent tool
update_toolUpdate a webhook tool - send only the fields you want to change, the rest stays as-is. Two things to watch for: both params and headers are always sent IN FULL (whatever you don't include in the array, the tool won't have after the update, and a header can't be edited blind from the masked value in list_tools - you must send its full value again), and changing label also changes the name the model knows the tool by - if you reference it in the agent's systemPrompt, update that too. Fields mean the same as in create_tool; timeoutSecs is an integer from 5 to 30 seconds. requireConfirmation switches the confirmation gate on or off (see create_tool) and sending it alone changes only that. Saving the tool does not rewrite agents that already run on the volai engine: a change of requireConfirmation (like any other tool field) reaches such an agent the next time it is saved or published (update_agent or publish_agent_draft). With a running campaign task the way matters: publish_agent_draft on the tested draft, unchanged, keeps the tested mark so the task continues (now with a gate the test did not cover), while update_agent clears the tested mark and stops the task with agent_version_changed. Same data as PATCH /v1/tools/{id} (API reference: https://volai.cz/en/docs/api; response schema: https://volai.cz/openapi.json).
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": {
"id": "<id>"
},
"name": "update_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the webhook tool to update, from list_tools. Looks like tl_9f3a2b7c4d1e. | |
| url | No | Address the agent calls, must be https and must not point into an internal network. Omit to leave it unchanged. | |
| label | No | Readable name for the tool, shown in the portal; the model's name for it is derived from it automatically, 1 to 60 characters. Omit to leave it unchanged. | |
| method | No | HTTP method the agent uses: GET (parameters go in the query string) or POST (parameters go in the JSON body). Omit to leave it unchanged. | |
| params | No | Parameters the tool sends with the call, at most 10; the FULL list every time, a parameter not included here won't exist after the update. | |
| headers | No | Header name to value sent with every call, typically Authorization, at most 5; the FULL list every time, a header not included here won't exist after the update. The headers host, content-length, x-conversation-id and x-caller-id cannot be set. | |
| description | No | The only thing the model uses to decide when to call the tool, written as an instruction, 10 to 1000 characters. Omit to leave it unchanged. | |
| timeoutSecs | No | How long we give your API to respond, in seconds, 5 to 30. Omit to leave it unchanged; a longer limit means the caller hears silence. | |
| requireConfirmation | No | true makes the volai engine run the tool only when the caller's last reply clearly says yes, false turns that off. Engine agents in Czech or Slovak only. Omit to leave it unchanged. |