Get Studio page context
get_page_contextOne page's node tree, with each node's id, type, name and text. Styles are off by default and cost tokens — ask for a single breakpoint when you need them. Use the returned ids with batch_edit_design.
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": {
"siteId": "<siteId>",
"page": "<page>"
},
"name": "get_page_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page id, or its route like "/pricing" | |
| depth | No | How deep to walk the tree. Default 4; deeper costs tokens. | |
| siteId | Yes | ||
| breakpoint | No | With includeStyles, return only this breakpoint's values. | |
| includeStyles | No | Include each node's styles. Default false — ask for one breakpoint instead when you can. |