Run tool
run_toolRun a third-party tool, paid from your prepaid 1ToolRing balance. Use the id from discover_tools and an input built from the inspect_tool input_schema. The price is held up front (held), then settled to the real cost (cost, as {usd, idr}); failed or provider-error runs are not charged. Waits up to about 60s for slow tools; if still running it returns a run_id for get_tool_run. Errors: INSUFFICIENT_BALANCE (with balance, needed and topup_url), TOOL_BLOCKED (the tool is not available right now; nothing charged), RUN_TOO_LARGE (with estimated and cap).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool": "<tool>",
"input": "<input>"
},
"name": "run_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool id from discover_tools / inspect_tool | |
| wait | No | Wait for a slow (async) run to finish, up to ~60s (default true). false returns the run_id at once. | |
| input | Yes | Tool input as inspect_tool describes: {"body": {...}, "queryParams": {...}, "pathParams": {...}} (include only the parts the schema declares) |