folate_resolve
Resolve natural-language element descriptions against page HTML into ranked CSS/XPath selectors, eliminating brittle selector guessing or headful browser sessions.
Instructions
Resolve a natural-language element description against page HTML into ranked CSS/XPath selectors using Figranium's Folate endpoint (POST /api/folate/resolve). Use this instead of guessing brittle selectors or launching a headful browser session.
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": {
"query": "<query>",
"html": "<html>"
},
"name": "folate_resolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Raw HTML of the target page to rank interactive DOM elements against. | |
| topK | No | Optional number of top candidate matches to return (integer 1-20, default 3). | |
| query | Yes | Natural-language description of the target DOM element (1-1000 chars). Example: 'click Search Flights button' | |
| maxCandidates | No | Optional maximum number of DOM candidates to evaluate (integer 1-200, default 48). |