open_workspace
Opens ComfyUI in a browser so workspace tools have a connected tab to use. It waits for the tab to register, preventing no_workspace errors before the next workspace action.
Instructions
Open ComfyUI in a browser, so the workspace tools have a tab to talk to.
The bridge needs a page open - with none, every workspace_* tool fails with
no_workspace and the only fix is a human opening one. This is that fix.
It waits for the tab to register itself rather than firing and returning, because the caller's next move is a workspace tool: coming back before the page has loaded its JavaScript would just fail again, for a reason that no longer has anything to do with what went wrong.
A tab that is already connected is left alone and reported - a second one would work, but it becomes the preferred client and the user's own tab silently stops being the one that gets edited. Pass force to open anyway.
Args: wait: seconds to wait for the tab to connect. 0 returns as soon as the browser has been handed the URL. force: open a tab even when one is already connected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||