Get component text
get_component_textExact follow-up: visible own text, line breaks, IDs, parents, and rectangles for one component ID. Prefer get_section_bundle text/texts first; call this when the bundle marks textTruncated or you need uncapped runs/lines. Paginated and optionally limited to a y range; no CSS or asset payloads.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Captured page key returned by list_pages or get_application_manifest, not a URL or filesystem path. | |
| view | Yes | Exact stored profile key from list_pages.views (desktop, mobile, numbered profiles or a device label); do not pass the operating system here. | |
| yEnd | No | 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. | |
| limit | No | Maximum items returned, clamped to 1..50. Default 20. | |
| offset | No | Zero-based result offset for pagination. Negative values are treated as zero; default is 0. | |
| yStart | No | 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. | |
| product | Yes | Product key, for example finance-ozon-ru | |
| version | Yes | Exact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias. | |
| componentId | Yes | Captured root element ID from get_page_components or get_page_outline. Must belong to the selected page, view and pinned version. | |
| environment | No | Environment 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
| Name | Required | Description | Default |
|---|---|---|---|
| yEnd | Yes | Measured value | |
| items | Yes | Result entries | |
| layer | Yes | Text value | |
| total | Yes | Count or zero-based index | |
| offset | Yes | Count or zero-based index | |
| yStart | Yes | Measured value | |
| hasMore | Yes | Whether this condition holds | |
| truncated | Yes | Whether this condition holds | |
| componentId | Yes |