Capture built page
capture_buildCaptures a live page's visual specs, piercing shadow DOM and same-origin iframes, for comparison with a Figma frame. Uses the user's browser session without storing credentials.
Instructions
Measure the live page in the user's own browser session, piercing shadow DOM and same-origin iframes. Reuses a running Chrome over CDP, else a copy of the Chrome profile. Never asks for or stores credentials. Viewport width defaults to the Figma frame width from the same run.
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": {
"runId": "<runId>",
"url": "<url>"
},
"name": "capture_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the built page. | |
| runId | Yes | The runId returned by capture_design. | |
| viewportWidth | No |