Skip to main content
Use the MeshAgent API base URL to discover enabled toolkit services available in a room and invoke a tool by name. These endpoints work while the room is stopped. A tool can start room compute by calling the Datasets or SQLite REST API. Send a room participant token for the target project and room in 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.
The example invokes the 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 raises PermissionError 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.