Skip to main content
Glama

Get component assets

get_component_assets
Read-onlyIdempotent

Read media references and geometry for one component ID. Paginated and optionally limited to a y range; resolve bytes via get_element_asset (URI/path by default).

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>",
      "componentId": "<componentId>"
    },
    "name": "get_component_assets"
  }
}

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.
limitNoMaximum items returned, clamped to 1..50. Default 20.
offsetNoZero-based result offset for pagination. Negative values are treated as zero; default is 0.
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.
componentIdYesCaptured root element ID from get_page_components or get_page_outline. Must belong to the selected page, view and pinned version.
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
yEndYesMeasured value
itemsYesResult entries
layerYesText value
totalYesCount or zero-based index
offsetYesCount or zero-based index
yStartYesMeasured value
hasMoreYesWhether this condition holds
truncatedYesWhether this condition holds
componentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedOutput schema / description
      Previous value: -"Structured result. Existing text or image content remains available in content."New value: +"Paginated component media sources"
    • addedOutput schema / properties / componentId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Count or zero-based index",
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / hasMore
      Added value: +{
      +  "description": "Whether this condition holds",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / items
      Added value: +{
      +  "description": "Result entries",
      +  "items": {
      +    "additionalProperties": true,
      +    "description": "Media element",
      +    "properties": {
      +      "backgroundPosition": {
      +        "anyOf": [
      +          {
      +            "description": "Text value",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "backgroundSize": {
      +        "anyOf": [
      +          {
      +            "description": "Text value",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "id": {
      +        "anyOf": [
      +          {
      +            "description": "Count or zero-based index",
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "kind": {
      +        "description": "Text value",
      +        "type": "string"
      +      },
      +      "rect": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/rect"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "source": {
      +        "anyOf": [
      +          {
      +            "description": "Text value",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "sourceLength": {
      +        "description": "Count or zero-based index",
      +        "type": "integer"
      +      },
      +      "tag": {
      +        "anyOf": [
      +          {
      +            "description": "Text value",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "tag",
      +      "rect",
      +      "kind",
      +      "sourceLength",
      +      "source",
      +      "backgroundSize",
      +      "backgroundPosition"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / layer
      Added value: +{
      +  "description": "Text value",
      +  "type": "string"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "Count or zero-based index",
      +  "type": "integer"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Paginated component media sources",
      -  "properties": {
      -    "componentId": {
      -      "anyOf": [
      -        {
      -          "description": "Count or zero-based index",
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "hasMore": {
      -      "description": "Whether this condition holds",
      -      "type": "boolean"
      -    },
      -    "items": {
      -      "description": "Result entries",
      -      "items": {
      -        "additionalProperties": true,
      -        "description": "Media element",
      -        "properties": {
      -          "backgroundPosition": {
      -            "anyOf": [
      -              {
      -                "description": "Text value",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "backgroundSize": {
      -            "anyOf": [
      -              {
      -                "description": "Text value",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "id": {
      -            "anyOf": [
      -              {
      -                "description": "Count or zero-based index",
      -                "type": "integer"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "kind": {
      -            "description": "Text value",
      -            "type": "string"
      -          },
      -          "rect": {
      -            "anyOf": [
      -              {
      -                "$ref": "#/$defs/rect"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "source": {
      -            "anyOf": [
      -              {
      -                "description": "Text value",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "sourceLength": {
      -            "description": "Count or zero-based index",
      -            "type": "integer"
      -          },
      -          "tag": {
      -            "anyOf": [
      -              {
      -                "description": "Text value",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "tag",
      -          "rect",
      -          "kind",
      -          "sourceLength",
      -          "source",
      -          "backgroundSize",
      -          "backgroundPosition"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "layer": {
      -      "description": "Text value",
      -      "type": "string"
      -    },
      -    "offset": {
      -      "description": "Count or zero-based index",
      -      "type": "integer"
      -    },
      -    "total": {
      -      "description": "Count or zero-based index",
      -      "type": "integer"
      -    },
      -    "truncated": {
      -      "description": "Whether this condition holds",
      -      "type": "boolean"
      -    },
      -    "yEnd": {
      -      "description": "Measured value",
      -      "type": "number"
      -    },
      -    "yStart": {
      -      "description": "Measured value",
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "layer",
      -    "componentId",
      -    "yStart",
      -    "yEnd",
      -    "truncated",
      -    "total",
      -    "offset",
      -    "hasMore",
      -    "items"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / total
      Added value: +{
      +  "description": "Count or zero-based index",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / truncated
      Added value: +{
      +  "description": "Whether this condition holds",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / yEnd
      Added value: +{
      +  "description": "Measured value",
      +  "type": "number"
      +}
    • addedOutput schema / properties / yStart
      Added value: +{
      +  "description": "Measured value",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "layer",
      +  "componentId",
      +  "yStart",
      +  "yEnd",
      +  "truncated",
      +  "total",
      +  "offset",
      +  "hasMore",
      +  "items"
      +]
  2. Changed9 schema fields changed
    • addedInput schema / properties / componentId / description
      Added value: +"Captured root element ID from get_page_components or get_page_outline. Must belong to the selected page, view and pinned version."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum items returned, clamped to 1..50. Default 20."
    • addedInput schema / properties / offset / description
      Added value: +"Zero-based result offset for pagination. Negative values are treated as zero; default is 0."
    • 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"
      +    }
      +  },
      +  "$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": {
      +      "additionalProperties": true,
      +      "description": "Paginated component media sources",
      +      "properties": {
      +        "componentId": {
      +          "anyOf": [
      +            {
      +              "description": "Count or zero-based index",
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "hasMore": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "description": "Result entries",
      +          "items": {
      +            "additionalProperties": true,
      +            "description": "Media element",
      +            "properties": {
      +              "backgroundPosition": {
      +                "anyOf": [
      +                  {
      +                    "description": "Text value",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "backgroundSize": {
      +                "anyOf": [
      +                  {
      +                    "description": "Text value",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "id": {
      +                "anyOf": [
      +                  {
      +                    "description": "Count or zero-based index",
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "kind": {
      +                "description": "Text value",
      +                "type": "string"
      +              },
      +              "rect": {
      +                "anyOf": [
      +                  {
      +                    "$ref": "#/$defs/rect"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "source": {
      +                "anyOf": [
      +                  {
      +                    "description": "Text value",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "sourceLength": {
      +                "description": "Count or zero-based index",
      +                "type": "integer"
      +              },
      +              "tag": {
      +                "anyOf": [
      +                  {
      +                    "description": "Text value",
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "tag",
      +              "rect",
      +              "kind",
      +              "sourceLength",
      +              "source",
      +              "backgroundSize",
      +              "backgroundPosition"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "layer": {
      +          "description": "Text value",
      +          "type": "string"
      +        },
      +        "offset": {
      +          "description": "Count or zero-based index",
      +          "type": "integer"
      +        },
      +        "total": {
      +          "description": "Count or zero-based index",
      +          "type": "integer"
      +        },
      +        "truncated": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "yEnd": {
      +          "description": "Measured value",
      +          "type": "number"
      +        },
      +        "yStart": {
      +          "description": "Measured value",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "layer",
      +        "componentId",
      +        "yStart",
      +        "yEnd",
      +        "truncated",
      +        "total",
      +        "offset",
      +        "hasMore",
      +        "items"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: output defaults to URI/path references rather than inline bytes, and byte retrieval requires a separate call to get_element_asset. Pagination and y-range restriction are also disclosed as retrieval behaviors. It stops short of describing ordering, empty-result behavior, or whether the y-range filter can exclude items.

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

Conciseness5/5

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

Two sentences, zero filler, and the core operation is front-loaded before the pagination/range qualifier and the follow-up routing hint. Every clause carries information an agent needs: what is returned, how it is scoped, and where the bytes come from.

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?

For a read-only, ten-parameter, output-schema-backed retrieval tool, the description covers the essential gaps: pagination, optional vertical scoping, and the URI-vs-bytes handoff. Return-value shape need not be explained because an output schema exists. Minor omissions are ordering of results and whether the y-range filter is inclusive, but nothing required for a correct call is missing.

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 description coverage is 100%, so all ten parameters, including the subtle page/view/version pinning and the yStart/yEnd interaction, are already documented in the schema. The description only echoes that pagination and y-range limiting exist, adding no syntax or constraints beyond what the schema states. Baseline 3 is appropriate when the schema carries the full parameter burden.

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?

The description names a specific verb and resource — 'Read media references and geometry for one component ID' — which pins the scope to a single captured component and clearly separates it from page-level siblings like get_page_artifacts. It also names the sibling that delivers the actual bytes (get_element_asset), so an agent can distinguish the two without opening schemas. It does not, however, differentiate itself from near-neighbors such as get_component_image or get_component, which an agent might reasonably confuse it with.

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?

Usage context is explicit: use this to enumerate media references and geometry, then 'resolve bytes via get_element_asset' — a concrete alternative with the condition that selects it. It also signals that results are paginated and can be narrowed to a y range, implying the tool is for partial/interactive retrieval rather than bulk dumps. There are no explicit when-not statements for the other component-scoped siblings.

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