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.

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
resultYesArtifact manifest by default; exact bounded IR when inline=true

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/non-destructive profile, yet the description adds substantial context: the size bound (two viewport heights), what is preserved and deduplicated, how inline media is replaced with references, and that the default returns a small manifest plus an artifact path meant to be consumed outside model context. That last point materially changes how an agent should handle 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 the tool produces, then handling guidance, then parameter routing. Dense but mostly waste-free; 'No screenshot analysis required' is slightly tangential but does preempt a common misread.

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

Completeness5/5

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

For an 8-parameter tool with an output schema, the description covers output shape, size limits, media handling, and the default-vs-inline tradeoff. Nothing an agent needs to call it correctly is missing, and return-value explanation is not required given the output schema.

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%, so the baseline is 3. The description reinforces inline semantics and the yStart/yEnd fragment intent, but these largely restate the schema's own parameter descriptions rather than adding new syntax, units, or constraints.

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 verb+resource ('Exact reconstruction IR') and pins down the scope ('at most two viewport heights'), with a concrete inventory of what it preserves. It does not name or differentiate against the obvious siblings (get_section_bundle, get_page_bundles), so an agent still has to infer which bundle tool to pick.

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 actionable conditions: default vs inline=true, and 'Use yStart/yEnd for the requested fragment; do not fetch fine-grained layers for the same fragment' plus 'No screenshot analysis required.' That is clear when-to-use and a when-not, but it never names an alternative tool to route to.

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