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.
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": {
"action": "<action>"
},
"name": "browser_window"
}
}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. |