Wait for a panel to be ready
cmux_wait_readyPoll a terminal surface until it matches a regex or becomes stable, then return the final screen; use after spawning a panel instead of sleeping.
Instructions
Poll a surface until ready, then return the final screen. Ready = matches pattern regex, or (no pattern) the screen is non-empty and unchanged between polls. Use instead of sleeping after spawning a panel; for a live TUI that never settles, pass a 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": {
"surface": "<surface>"
},
"name": "cmux_wait_ready"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | No | Window ref like "window:1". Defaults to the caller's window. | |
| pattern | No | Regex; ready as soon as the screen matches it. | |
| surface | Yes | Surface/panel ref to watch, e.g. "surface:39". | |
| timeoutMs | No | Give up after this long (default 15000). | |
| workspace | No | Workspace ref like "workspace:26". Defaults to the caller's workspace. |