get_last_output
Retrieve identifying details and view URL for the most recent ComfyUI prompt that produced an image output, skipping failed prompts. Use to recover output info after a lost prompt_id or timeout.
Instructions
Get info for the most recent prompt that has image output (skips failed prompts). Use when prompt_id was lost (e.g. execute_workflow_sync timed out). Returns prompt_id, filename, subfolder, view_url. Then use download_by_filename to save the file. Requires COMFYUI_HOST.
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": "get_last_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||