Call an Endpoint
socialcrawl_requestCall one endpoint (platform+resource, or id, or path). Validated locally first (a bad call is free), quoted, refused above max_credits and confirmed above the threshold. A large page is cut at row boundaries; socialcrawl_collect result_id reads the rest. Spends credits; needs SOCIALCRAWL_API_KEY.
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": {
"platform": "<platform>",
"resource": "<resource>"
},
"name": "socialcrawl_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST batch endpoints, e.g. { ids: [...] }. | |
| fields | No | Row paths as socialcrawl_endpoint lists them, e.g. 'post.id,post.engagement.*' (or an array). Cuts tokens. | |
| format | No | json (default), csv (canonical columns) or summary. | |
| method | No | Only for a resource served by several methods (prism/jobs). Inferred: a body selects POST. | |
| params | No | Query params, e.g. { handle: 'x', limit: 10 }. Arrays join with commas (label). Sent as strings. | |
| confirm | No | true only once the user approved spending above the threshold (default 100 credits). | |
| platform | Yes | Platform slug, e.g. 'tiktok'. An unknown slug gets a did-you-mean. | |
| resource | Yes | Resource path, e.g. 'post/comments'; path params as 'jobs/{job_id}' + params.job_id, or the concrete path. | |
| max_items | No | Show at most this many rows; the full page stays behind the result link. | |
| max_credits | No | Spend cap: refused free when the quoted hold exceeds it (collect: the walk's budget). | |
| idempotencyKey | No | Makes a retry safe: a replay returns the original response for 0 credits (24h). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| fix | No | ||
| job | No | A submitted background job and how to poll it. | |
| code | No | ||
| data | No | Single-object result. | |
| hint | No | ||
| page | No | Page-level blocks beside the rows. | |
| rows | No | Untrusted text. | |
| paging | No | ||
| reason | No | ||
| credits | No | ||
| partial | No | Stream failed after some data (kept in rows/data). | |
| summary | No | format=summary. | |
| csv_rows | No | format=csv: rows in the text CSV. | |
| endpoint | No | ||
| warnings | No | ||
| result_id | No | socialcrawl_collect result_id reads the full body. | |
| retryable | No | Never retry a 402. | |
| truncated | No | Rows were cut to fit. | |
| request_id | No | ||
| did_you_mean | No | ||
| retry_after_s | No |