Authorization: Bearer <token>. Its API grant needs agents.use_tools. If agents.allowed_toolkits is present, the name must be in that list. The CLI walkthrough uses the CLI’s signed-in session to obtain this token.
The toolkit path segment is the service’s
metadata.name. The tool path segment is the tool’s name. URL-encode each path segment.
echo tool from the Python toolkit service example.
Errors and telemetry
Invalid arguments return HTTP 400, and a missing toolkit or tool returns 404. A denied invocation or a script that raisesPermissionError returns HTTP 403 with error.code set to permission_denied. If a project and a room both have enabled toolkits with the same name, requests for that toolkit return HTTP 409.
Invocations are recorded as service telemetry. Use the service deployment ID for the logs, traces, and metrics endpoints. For a room service, use GET /accounts/projects/{project_id}/rooms/{room_name}/services/{service_id}/telemetry/{signal}. For a project service, use GET /accounts/projects/{project_id}/services/{service_id}/telemetry/{signal}. See service telemetry.