Create a tool
Authentication
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Request
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
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.

