wait_for_output
Waits for terminal output to match a specified pattern using regex or literal search, enabling conditional command execution in remote sessions.
Instructions
Wait for remote session output matching a regex or literal 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": {
"session_id": "<session_id>",
"pattern": "<pattern>",
"timeout": "<timeout>"
},
"name": "wait_for_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | ||
| pattern | Yes | ||
| timeout | Yes | ||
| session_id | Yes | ||
| clear_buffer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||