polarion_get_document_parts
Read a LiveDoc's parts—headings, sections, text, and linked Work Item IDs—to inspect document structure. Optionally fetch Work Item titles and descriptions or truncate HTML content.
Instructions
Read the parts of a LiveDoc: headings and sections with their text and linked Work Item ids.
Args: document_id: Document name or id. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Space id. Required on releases without a project-wide document lookup. part_id: Return only this part instead of the full list. content_limit: Truncate each part's HTML content. include_work_item_content: For Work Item parts, also fetch the Work Item title and description (adds one REST call per distinct Work Item, capped at 50).
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": {
"document_id": "<document_id>"
},
"name": "polarion_get_document_parts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part_id | No | ||
| space_id | No | ||
| project_id | No | ||
| document_id | Yes | ||
| content_limit | No | ||
| include_work_item_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||