browser_window
Bring the Strudel browser window to the foreground or capture a screenshot of the editor view, optionally specifying a filename.
Instructions
Interact with the visible Strudel browser window. action=show brings the window to the foreground. action=screenshot captures the current editor view to disk (optional filename). Example: browser_window({ action: "screenshot", filename: "demo.png" }). For diagnostics (status/errors/perf) use diagnostics; for the editor itself use edit_pattern.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Window action | |
| filename | No | action=screenshot: optional output filename | |
| session_id | No | Optional session ID (#108). Omit to use default session. compose auto-init only applies to default session — named sessions must already exist. |