Add or replace a tool
Saves one tool on the agent, creating it or replacing the one with this name, and leaves the agent’s other tools alone. The name comes from the URL (lowercase, 2–40 characters). Every save is a new agent revision, and calls already placed keep the version they started with.
This example is an on-call tool: the agent collects date and time from the caller, says the speak_while line, and POSTs them to your endpoint with your secret in the header. {{ vars.customer_id }} comes from the call’s variables. Replace request.url with your own HTTPS endpoint (public, port 443).
Send if_revision in the body to refuse the save if someone changed the agent since you read it. The answer is the whole agent, with every default filled in.
Authorizations
Path Parameters
Response
Saved: the agent, with its tools