get_text
Extracts the visible text from a web element using a CSS, XPath, ID, name, tag, class, or link selector, so you can verify or capture on-page content.
Instructions
Get the visible text content of an element.
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": {
"selector": "<selector>"
},
"name": "get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Strategy | css |
| timeout | No | Seconds | |
| selector | Yes | Locator value |