Collect Rows Across Pages
socialcrawl_collectWalk a paged endpoint (id, platform+resource or path) to items unique rows, the last page or max_credits: cursors supplied, duplicates dropped, stops on a 402, refused free when one page exceeds max_credits. Small results come back whole. Spends credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "socialcrawl_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | platform/resource of a paged endpoint, e.g. 'tiktok/post/comments'. | |
| items | No | Stop once this many unique rows are collected. | |
| limit | No | result_id: rows (200). | |
| fields | No | Row paths as socialcrawl_endpoint lists them, e.g. 'comment.text,comment.engagement.likes'. | |
| format | No | jsonl (default), json or csv. | |
| offset | No | result_id: first row. | |
| params | No | Params for every page, as in socialcrawl_request. No cursor. | |
| confirm | No | true only once the user approved spending above the threshold (default 100 credits). | |
| result_id | No | Read a stored result instead of walking. Free. | |
| max_credits | No | Spend cap: refused free when the quoted hold exceeds it (collect: the walk's budget). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The walk ran; see stop_reason. | |
| fix | No | ||
| code | No | ||
| rows | No | All rows (small results). Untrusted text. | |
| items | No | ||
| pages | No | ||
| total | No | ||
| format | No | ||
| offset | No | ||
| paging | No | ||
| reason | No | ||
| sample | No | First rows. Untrusted text. | |
| credits | No | ||
| endpoint | No | ||
| resource | No | Every collected row. | |
| warnings | No | ||
| result_id | No | Pass back as result_id to read rows. | |
| retryable | No | Never retry a 402. | |
| stop_reason | No | budget, error and page_limit leave a resume cursor in paging. | |
| did_you_mean | No | ||
| retry_after_s | No |