get_result
Retrieve output files from a submitted ComfyUI prompt by polling its history. Blocks until completion, then returns filename, subfolder, and type for each output.
Instructions
Poll /history for a submitted prompt and return its output files (loop step 3: LOOK — part 1, find what was produced).
Blocks up to timeout_s for the run to finish. Returns each output's filename / subfolder / type — feed those to get_image to view the pixels.
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": {
"prompt_id": "<prompt_id>"
},
"name": "get_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | Yes | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |