verify_stacking_context
Trace an element's full CSS stacking context chain to diagnose why z-index isn't working and identify which ancestors create stacking contexts.
Instructions
Reveals the full CSS stacking context chain for an element — which ancestors create new stacking contexts and why. Use to answer: why is my z-index:9999 element still behind a modal? Does this element create its own stacking context?
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": {
"url": "<url>",
"selector": "<selector>"
},
"name": "verify_stacking_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the page to analyze | |
| selector | Yes | CSS selector for the element to inspect | |
| viewport | No | Viewport size (default: 1280×720) |