get_box_model
Retrieve the box model dimensions (width, height, margin, padding, border, content) for any element using a CSS selector. Get precise layout metrics to debug and adjust page styling.
Instructions
获取元素盒模型尺寸(width/height/margin/padding/border/content)
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": "get_box_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS 选择器 |