Skip to main content
Glama

Get reconstruction bundle

get_reconstruction_bundle
Read-onlyIdempotent

Exact reconstruction IR for at most two viewport heights. Preserves nodes, ancestors, copy, layout, effects and motion; deduplicates computed styles; replaces inline media with file/URI references. Default returns a small manifest plus a JSON artifact path/URI to consume with code, outside model context. Set inline=true only to inspect the bounded IR. No screenshot analysis required. Use yStart/yEnd for the requested fragment; do not fetch fine-grained layers for the same fragment.

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": {
      "product": "<product>",
      "version": "<version>",
      "page": "<page>",
      "view": "<view>"
    },
    "name": "get_reconstruction_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesCaptured page key returned by list_pages or get_application_manifest, not a URL or filesystem path.
viewYesExact stored profile key from list_pages.views (desktop, mobile, numbered profiles or a device label); do not pass the operating system here.
yEndNoNon-negative vertical end coordinate in captured CSS pixels; default 0 selects one viewport from yStart. A vertical fragment may span at most two viewport heights.
inlineNoReturn the bounded reconstruction IR directly instead of a small artifact manifest with JSON and starter HTML paths. Default false.
yStartNoNon-negative vertical start coordinate in captured CSS pixels; default 0. When both bounds are 0, component layers use the component bounds and page layers use the first viewport.
productYesProduct key, for example finance-ozon-ru
versionYesExact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias.
environmentNoEnvironment ID from the selected backend platform type in list_platforms.options.platforms[].environments[].id (backend implementation). Omit only when the version has one captured environment. Use captured pairs from list_platforms/list_versions for actual availability.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedOutput schema / $defs / download
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Signed links for clients without the bearer token. Present on authenticated HTTP calls when signed downloads are enabled.",
      +  "properties": {
      +    "baseUrl": {
      +      "description": "Append any relative /mcp-transfers/ or /mcp-assets/ URI to this base",
      +      "type": "string"
      +    },
      +    "expiresAt": {
      +      "description": "ISO 8601 expiry of every link in this object",
      +      "type": "string"
      +    },
      +    "instruction": {
      +      "description": "How to use the links",
      +      "type": "string"
      +    },
      +    "schemaUrl": {
      +      "description": "Signed absolute URL of schemaUri",
      +      "type": "string"
      +    },
      +    "starterUrl": {
      +      "description": "Signed absolute URL of starterUri",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "Signed absolute URL of uri",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "baseUrl",
      +    "expiresAt",
      +    "instruction"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / transferManifest / properties / download
      Added value: +{
      +  "$ref": "#/$defs/download"
      +}
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/transferManifest"
      +  },
      +  {
      +    "$ref": "#/$defs/transferInline"
      +  }
      +]
    • changedOutput schema / description
      Previous value: -"Structured result. Existing text or image content remains available in content."New value: +"Artifact manifest by default; exact bounded IR when inline=true"
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "anyOf": [
      -      {
      -        "$ref": "#/$defs/transferManifest"
      -      },
      -      {
      -        "$ref": "#/$defs/transferInline"
      -      }
      -    ],
      -    "description": "Artifact manifest by default; exact bounded IR when inline=true"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
  2. Changed7 schema fields changed
    • addedInput schema / properties / inline / description
      Added value: +"Return the bounded reconstruction IR directly instead of a small artifact manifest with JSON and starter HTML paths. Default false."
    • addedInput schema / properties / page / description
      Added value: +"Captured page key returned by list_pages or get_application_manifest, not a URL or filesystem path."
    • addedInput schema / properties / product / description
      Added value: +"Product key, for example finance-ozon-ru"
    • addedInput schema / properties / version / description
      Added value: +"Exact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias."
    • addedInput schema / properties / yEnd / description
      Added value: +"Non-negative vertical end coordinate in captured CSS pixels; default 0 selects one viewport from yStart. A vertical fragment may span at most two viewport heights."
    • addedInput schema / properties / yStart / description
      Added value: +"Non-negative vertical start coordinate in captured CSS pixels; default 0. When both bounds are 0, component layers use the component bounds and page layers use the first viewport."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "rect": {
      +      "additionalProperties": true,
      +      "description": "Captured CSS-pixel rectangle",
      +      "properties": {
      +        "height": {
      +          "description": "height",
      +          "type": "number"
      +        },
      +        "width": {
      +          "description": "width",
      +          "type": "number"
      +        },
      +        "x": {
      +          "description": "x",
      +          "type": "number"
      +        },
      +        "y": {
      +          "description": "y",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "transferAsset": {
      +      "additionalProperties": true,
      +      "description": "Media referenced by reconstruction IR",
      +      "properties": {
      +        "hash": {
      +          "anyOf": [
      +            {
      +              "description": "hash",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "kind": {
      +          "anyOf": [
      +            {
      +              "description": "kind",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "mime": {
      +          "anyOf": [
      +            {
      +              "description": "mime",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "path": {
      +          "anyOf": [
      +            {
      +              "description": "path",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "size": {
      +          "description": "Count or zero-based index",
      +          "type": "integer"
      +        },
      +        "uri": {
      +          "anyOf": [
      +            {
      +              "description": "uri",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "transferInline": {
      +      "additionalProperties": true,
      +      "description": "Exact reconstruction IR returned when inline=true",
      +      "properties": {
      +        "assets": {
      +          "description": "Result entries",
      +          "items": {
      +            "$ref": "#/$defs/transferAsset"
      +          },
      +          "type": "array"
      +        },
      +        "captureTruncated": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "defaults": {
      +          "additionalProperties": true,
      +          "description": "Baseline computed/layout/effects properties",
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "environment": {
      +          "description": "environment",
      +          "type": "string"
      +        },
      +        "fonts": {
      +          "description": "Result entries",
      +          "items": {
      +            "additionalProperties": true,
      +            "description": "Captured font declarations",
      +            "properties": {},
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "nodes": {
      +          "description": "Result entries",
      +          "items": {
      +            "$ref": "#/$defs/transferNode"
      +          },
      +          "type": "array"
      +        },
      +        "page": {
      +          "description": "page",
      +          "type": "string"
      +        },
      +        "product": {
      +          "description": "product",
      +          "type": "string"
      +        },
      +        "schema": {
      +          "description": "schema",
      +          "type": "string"
      +        },
      +        "selectionComplete": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "styles": {
      +          "description": "Result entries",
      +          "items": {
      +            "additionalProperties": true,
      +            "description": "Deduplicated style deltas",
      +            "properties": {},
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "version": {
      +          "description": "version",
      +          "type": "string"
      +        },
      +        "view": {
      +          "description": "view",
      +          "type": "string"
      +        },
      +        "viewport": {
      +          "$ref": "#/$defs/viewport"
      +        },
      +        "yEnd": {
      +          "description": "yEnd",
      +          "type": "number"
      +        },
      +        "yStart": {
      +          "description": "yStart",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "schema",
      +        "product",
      +        "version",
      +        "page",
      +        "view",
      +        "environment",
      +        "yStart",
      +        "yEnd",
      +        "captureTruncated",
      +        "selectionComplete",
      +        "viewport",
      +        "defaults",
      +        "styles",
      +        "nodes",
      +        "assets",
      +        "fonts"
      +      ],
      +      "type": "object"
      +    },
      +    "transferManifest": {
      +      "additionalProperties": true,
      +      "description": "Artifact manifest returned when inline=false",
      +      "properties": {
      +        "assetCount": {
      +          "description": "assetCount",
      +          "type": "integer"
      +        },
      +        "bytes": {
      +          "description": "bytes",
      +          "type": "integer"
      +        },
      +        "captureTruncated": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "environment": {
      +          "description": "environment",
      +          "type": "string"
      +        },
      +        "instruction": {
      +          "description": "instruction",
      +          "type": "string"
      +        },
      +        "nodeCount": {
      +          "description": "nodeCount",
      +          "type": "integer"
      +        },
      +        "path": {
      +          "description": "path",
      +          "type": "string"
      +        },
      +        "schema": {
      +          "description": "schema",
      +          "type": "string"
      +        },
      +        "selectionComplete": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "sha256": {
      +          "description": "sha256",
      +          "type": "string"
      +        },
      +        "starterLimitations": {
      +          "description": "starterLimitations",
      +          "type": "string"
      +        },
      +        "starterPath": {
      +          "description": "starterPath",
      +          "type": "string"
      +        },
      +        "starterUri": {
      +          "description": "starterUri",
      +          "type": "string"
      +        },
      +        "styleCount": {
      +          "description": "styleCount",
      +          "type": "integer"
      +        },
      +        "uri": {
      +          "description": "uri",
      +          "type": "string"
      +        },
      +        "yEnd": {
      +          "description": "yEnd",
      +          "type": "number"
      +        },
      +        "yStart": {
      +          "description": "yStart",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "schema",
      +        "environment",
      +        "sha256",
      +        "path",
      +        "uri",
      +        "starterPath",
      +        "starterUri",
      +        "starterLimitations",
      +        "instruction",
      +        "nodeCount",
      +        "styleCount",
      +        "assetCount",
      +        "bytes",
      +        "yStart",
      +        "yEnd",
      +        "captureTruncated",
      +        "selectionComplete"
      +      ],
      +      "type": "object"
      +    },
      +    "transferNode": {
      +      "additionalProperties": true,
      +      "description": "Exact captured node with preserved parent and deduplicated style index",
      +      "properties": {
      +        "content": {
      +          "anyOf": [
      +            {
      +              "description": "content",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "contextOnly": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "id": {
      +          "description": "Count or zero-based index",
      +          "type": "integer"
      +        },
      +        "parent": {
      +          "anyOf": [
      +            {
      +              "description": "Count or zero-based index",
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "rect": {
      +          "$ref": "#/$defs/rect"
      +        },
      +        "role": {
      +          "anyOf": [
      +            {
      +              "description": "role",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "source": {
      +          "anyOf": [
      +            {
      +              "description": "source",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "style": {
      +          "description": "Count or zero-based index",
      +          "type": "integer"
      +        },
      +        "tag": {
      +          "anyOf": [
      +            {
      +              "description": "tag",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "text": {
      +          "anyOf": [
      +            {
      +              "description": "text",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "viewport": {
      +      "additionalProperties": true,
      +      "description": "Captured viewport dimensions and device scale",
      +      "properties": {
      +        "devicePixelRatio": {
      +          "description": "devicePixelRatio",
      +          "type": "number"
      +        },
      +        "height": {
      +          "description": "height",
      +          "type": "number"
      +        },
      +        "scrollHeight": {
      +          "description": "scrollHeight",
      +          "type": "number"
      +        },
      +        "width": {
      +          "description": "width",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "description": "Structured result. Existing text or image content remains available in content.",
      +  "properties": {
      +    "result": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/transferManifest"
      +        },
      +        {
      +          "$ref": "#/$defs/transferInline"
      +        }
      +      ],
      +      "description": "Artifact manifest by default; exact bounded IR when inline=true"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, so the description correctly spends its words elsewhere: dedup of computed styles, media replaced by file/URI references, and the default returning a manifest + artifact path meant to be consumed by code outside model context. That last point is a genuinely non-obvious behavioral trait that shapes how an agent handles the result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what is produced, then the fidelity guarantees, then the default output mode, then the bounds guidance. Dense with worthwhile content and no filler, though the semicolon-chained sentence structure is hard to parse on first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description is not obliged to detail return shape, yet it still flags the manifest/artifact split that determines whether the agent should read the result or hand a path to code. Combined with the fragment-size bound and the 'no screenshot analysis required' note, an agent has enough to call it correctly; only cross-tool routing remains thin.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the yStart/yEnd/inline descriptions in the schema already carry the coordinate and default semantics. The description adds useful framing for inline ('only to inspect the bounded IR') and the manifest-vs-IR tradeoff, but it restates rather than extends most parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (exact reconstruction IR) and an explicit bound (at most two viewport heights), which lets an agent distinguish it from lighter-weight siblings like get_component_tree. It never names an adjacent sibling bundle tool (get_section_bundle, get_page_bundles), so differentiation is by scope only rather than by explicit contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real routing advice: use yStart/yEnd for the requested fragment and 'do not fetch fine-grained layers for the same fragment', plus 'Set inline=true only to inspect'. That is a when/when-not pair with a negative constraint. It stops short of pointing to a specific alternative tool when a smaller payload is wanted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources