Run a tool (paid)
run_toolRuns one TollNode tool and returns its result: text, data, or links to the files it made. Spends money: the tool's price (see get_tool) is charged only when the call returns a usable result; a refused input, a failure or an empty result costs nothing. Every successful call is charged again, so do not repeat one that worked; send idempotency_key to make a retry safe. Pay from an account balance (API key on the connection) or with x402: the first call answers with the payment requirements as an error result; sign them and call again with the payment in params._meta["x402/payment"]. Account results end with the amount charged and a request id for get_call. The whole request is capped at 4.5 MB: send photos, audio and video as https links, or call upload_file first for anything over about 3 MB and pass its fileUrl.
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": {
"name": "<name>",
"input": "<input>"
},
"name": "run_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The tool's name from search_tools, e.g. 'weather'. | |
| input | Yes | The tool's input fields, exactly as get_tool's inputSchema describes them, e.g. {"action": "current", "location": "Lisbon"}. | |
| idempotency_key | No | Optional, any unique text. Repeating an account call with the same key returns the first successful result without charging again. A call that was refused (rate limit, bad input, low balance) or failed does not use the key up: retrying with the same key is safe and runs the call. |