call_api
Run an API.SH endpoint and return its JSON. Spends the endpoint's credits when the call runs (a success, or a lookup that found nothing); refused calls and errors on our side are free. By default the bulky 'raw' source blocks are left out; set include_raw to get them.
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": {
"route": "<route>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Skip the 24-hour cache. | |
| route | Yes | The route, e.g. /reddit/v1/subreddit | |
| params | No | Query parameters, e.g. {"subreddit": "python"} | |
| include_raw | No | Include raw source data (much larger). |