find_selector
Find the CSS selector for an element containing specific text. Optionally match exact text or restrict to a given element type.
Instructions
Find CSS selector for element containing specific text
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": "find_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content to search for in elements | |
| exact | No | Whether to match exact text (true) or partial text (false) | |
| elementType | No | HTML element type to search within (e.g., "button", "a", "div"). Default is "*" for any element | * |