Get iframe context from spec
get_iframe_contextExtract iframe locator and frame operations from spec files to resolve iframe-related failures. Supplies deterministic frame structure so the fixer never guesses the selector.
Instructions
Extract iframe selector and frame-related operations from a spec file and its page object. Returns the iframe locator string, count of frame operations, and enforcement reminder. Call this for any failure whose context is 'iframe' to provide deterministic frame structure before calling analyze_and_fix_selector — the model must never guess the iframe 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": {
"specFilePath": "<specFilePath>"
},
"name": "get_iframe_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specFilePath | Yes | Absolute path to the spec file |