Tools API (deprecated)
Retired on the server
The /api/client/v1/tools* endpoints are no longer served, so every method of client.tools fails with a 404 (the first call logs a deprecation warning). The resource stays in the SDK 4.0 only so old call sites fail clearly; it will be removed in a future major version.
Use these instead:
| You wanted to | Use |
|---|---|
| Give an agent a tool | client.agents with toolBindings on the agent definition (Agents API) |
| Register, refresh and run MCP server tools | client.mcp (createServer, refreshTools, listTools, execute, callTool); see the MCP API |
| Manage custom tools | The dashboard, Build → Agents → Tools |

