terminal_assert
Verifies that a terminal session's screen contains expected text or matches a regex pattern, returning pass/fail with current screen content and a message.
Instructions
Assert that the terminal screen contains expected text or matches a regex pattern. Returns pass/fail with the current screen content and a human-readable message.
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>",
"text": "<text>"
},
"name": "terminal_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text or regex pattern to search for | |
| regex | No | If true, treat text as a regex pattern (default: false) | |
| session_id | Yes | The session ID returned by terminal_spawn |