assert_contains
Check whether the current TUI screen contains specified text; if not, report failure with a screen excerpt for debugging.
Instructions
Assert the current screen contains text; on failure includes a screen excerpt.
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": {
"text": "<text>"
},
"name": "assert_contains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| session_id | No | default | |
| use_buffer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | ||
| found | Yes | ||
| passed | Yes | ||
| success | Yes | ||
| expected | Yes | ||
| session_id | Yes | ||
| screen_excerpt | Yes |