tb_getText
Read the visible text of one page element to verify a label or status, avoiding a full snapshot. Provide a session ID and locator to retrieve the text.
Instructions
Read the visible text of an element. Cheaper than tb_snapshot when you just need to verify a single label / status.
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": {
"sessionId": "<sessionId>",
"value": "<value>"
},
"name": "tb_getText"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy | css |
| value | Yes | Locator value | |
| sessionId | Yes | Session ID from tb_openBrowser | |
| timeoutMs | No | Implicit wait |