puppeteer_get_text
Extracts the textContent of the first element matching a CSS selector on a Puppeteer-controlled page, enabling precise text retrieval from web pages.
Instructions
Get the textContent of the first element matching the selector.
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": "puppeteer_get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | ||
| selector | Yes |