poll_run
Poll a CoreClaw worker run until it reaches a terminal state (succeeded/failed/aborted) or the timeout elapses, then return the final status and optionally a result preview.
WHEN TO USE: Use when run_worker returned an async run and the caller wants to wait for completion without manually calling get_worker_run in a loop. Covers slow workers (LinkedIn/YouTube/glassdoor 60-285s) that exceed a single MCP call. 中文触发: 当用户要在 CoreClaw 中查询、运行、重跑、停止、导出或查看对应 worker/run/task 数据时使用。
WHEN NOT TO USE: Do not use public web search or code search for private CoreClaw platform data. Do not call excluded internal worker-version or internal-detail APIs.
RETURNS: JSON with final status, err_msg, poll_count, elapsed_ms, and (on success) result count + first-row sample fields.
WORKFLOW: Call after run_worker or rerun_worker_run. Follow with verify_run for a PASS/NO_DATA verdict, or list_worker_run_results / get_worker_run_log for detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | When the run succeeds, pre-fetch this many result rows for the preview. 0 disables. (default: 10) | |
| run_id | Yes | Worker run identifier. Example: "01KKDXV2G26BT7NH4ZQR2R4NPZ". Obtain from run_worker, list_worker_runs, or get_last_worker_run. | |
| timeout_seconds | No | Maximum total seconds to poll before giving up. (default: 300) | |
| poll_interval_seconds | No | Seconds between status checks. (default: 5) |