ui_get_text
ui_get_textRead the visible text of a selected element or whole page to verify displayed content such as table values, headings, field errors, or totals.
Instructions
Read the trimmed visible text of the single element matching the selector, or of the whole page body when no selector is given (cut at 4000 characters with a note of the real length). Use it to check content: a table value, a heading, an error under a field, a total. Fails if the selector matches no element, more than one, or an element that is not visible. Selectors containing "nth=" are positional: call ui_get_page_state again after the page changes before reusing them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ui_get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector, or the `selector` value of an element from ui_get_page_state, passed unchanged; omit to read the whole page body | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |