get_document
Retrieve a single OpenProject document by ID, returning its full description by default or truncating it to a specified character limit.
Instructions
Get a single document by id.
The description is returned in full by default (single documents are not
truncated). Pass text_limit to cap it at that many characters; when the
text is cut, description_truncated is true and description_length
reports the real length.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text_limit | No | ||
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| title | Yes | ||
| project | Yes | ||
| can_update | Yes | ||
| created_at | Yes | ||
| project_id | Yes | ||
| description | Yes | ||
| attachment_count | Yes | ||
| description_length | No | ||
| description_truncated | No |