switch_workspace_tab
Switch to a different open workflow tab in ComfyUI, optionally forcing a reload. Specify the tab by index, path, filename, or keyword, and select the target browser tab via client_id.
Instructions
List the workflow tabs open in the ComfyUI window, and switch between them.
These are the tabs along the top of ComfyUI: open workflows, exactly one of
which is on screen. They are not browser tabs - one browser tab holds all of
them, and client_id plus workspace_status is where that sense of the word
lives.
With no to it reports and moves nothing, which is also how to find out what
is open before naming one. Every other workspace tool acts on the workflow
that is on screen, so this is what points them at a different one.
Switching does what clicking the tab does, and no more: the canvas is
reloaded from that workflow's own stored state. Unsaved edits in the tab
being left behind are not lost - they belong to that workflow, which is why
a tab can report modified while a different one is on screen.
"new" opens a blank workflow and switches to it, which is the same command the + button on the tab bar runs. That is the way to start something from nothing without disturbing what the user already has open.
Args: to: which tab - an index from a previous call, its path or its filename, or "next", "previous", "recent" for the one active before this, or "new" for a fresh blank workflow. Empty reports without moving. A name matching two open tabs is refused rather than guessed. force: reload the tab already on screen instead of reporting that it is already there. client_id: which browser tab to ask; defaults to the most recently focused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| force | No | ||
| client_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||