Get Segwise Query
get_segwise_queryWait for and retrieve a Segwise query started by start_segwise_query. Pass the returned job_id unchanged. This call waits for up to 25 seconds for the query to finish; if status is still running, call it again. Queries can take several minutes and many status checks. A running status means the query is still executing, not that it failed or has no data. Keep calling get_segwise_query with the exact same job_id, respecting poll_after_seconds. Do not start a duplicate query or stop because repeated checks return running. Give brief progress updates while continuing to poll; do not finish with a still-running answer while polling remains available. Stop polling on completed, failed, execution_deadline, an unrecoverable error, or user cancellation. Retry transient status-check errors with bounded backoff and honor retry delays; do not retry authentication or permission failures. If the host prevents further execution, distinguish that interruption from query failure and preserve the job_id for resumption. When status is completed, use the nested result as the answer. If result.reference_upload is present, use its signed instructions to transfer the user-selected file before expires_at. If result.competitor_ads is present, present its numbered ads and available source links alongside the analysis. For each video, show its labeled poster beside the analysis and a clickable Play video link to its asset_url (own creative) or video_url (competitor ad). Prefer the returned image content when the client supports it. Otherwise embed the thumbnail_url as a Markdown image when supported. If the poster is unavailable, still show Play video when a playback URL exists. Keep competitor source_url as a separate ad-library link. For other own creatives show the thumbnail and use asset_url for a requested original. For an expired media link, start a follow-up query in the same conversation to resolve it again. Competitor previews are labeled by ad number. Keep this job_id with its question. Reuse the conversation_id for every question in this user chat and organization, including unrelated questions. Return the IDs to the parent agent when delegating. Jobs are temporary and may be interrupted by a service restart.
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": {
"job_id": "<job_id>"
},
"name": "get_segwise_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Exact job_id returned by start_segwise_query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | Yes | ||
| result | No | ||
| status | Yes | Running means keep polling the same job. Completed and failed are terminal statuses. | |
| message | No | Guidance for continuing this running query. Absent for terminal results. | |
| next_action | No | Tool to call next with the same job_id when running. Absent for terminal results. | |
| conversation_id | No | Reuse this handle for every question in this user chat and organization. | |
| organization_id | Yes | ||
| organization_name | Yes | ||
| execution_deadline | Yes | Latest RFC3339 finish time while queued, then the execution deadline when the follow-up starts. Polling never extends it. | |
| poll_after_seconds | No | Minimum delay in seconds before the next get_segwise_query call when running. | |
| waiting_for_job_id | No | Preceding job this follow-up is waiting for. Continue polling this job. |