Update a tool

View as Markdown

Update a tool’s definition. Propagates live to every agent that references this tool (their config cache is busted on update).

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

toolIdstringRequiredformat: "^tool_[a-z0-9]{24}$"

The tool id, format tool_<24 lowercase alphanumerics>.

Request

This endpoint expects an object.
definitionobjectRequired

The tool body — the same shape used inside an agent’s tools[] (discriminated on type). api_call is the most common; client_tool and the built-in types are also valid.

Response

Tool updated.
statusbooleanOptional
dataobjectOptional

A tool in the org-level Tools library. Referenced from agents by toolId (see toolRefs on the agent config). Editing a library tool propagates to every agent that references it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error