segment_map
Creates a Grok Imagine segmentation task on RunAPI from an image URL, returning a task ID, status, and output URLs, with optional polling until completion.
Instructions
Create a Grok Imagine task on RunAPI (segment map). Returns a task id, status, and output URLs.
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": "segment_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| image_url | No | Public image URL that the service can fetch. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| source_task_id | No | Completed Image 2.0 text-to-image Task ID owned by the same account. Compatibility input; use image_url instead. Declared type: string. | |
| poll_interval_ms | No |