Inspect Library item
inspect_library_contentReturns bounded metadata, an excerpt, source insights, and open_url for one visible Library item. Present its title as Title, not a separate raw link or “Open” suffix. Articles include seo_description and folder_id. Documents include can_download, and a draft PDF can be opened before it is published. Guides include their step text; Trainn does not author guides here. Use after Library search and before relying on an item. Follow insights.next_offset with the same source_revision as expected_source_revision to read further. Offsets are characters in stored text, not video timestamps or PDF pages. Published source is preferred when present; revision is the editable metadata revision; insights.source_revision identifies the inspected text. course_usage lists up to five courses using the item in live or draft lessons or covers, with has_more when there are others. It is null without course-read permission. Before editing a shared PDF, explain which listed courses will be affected.
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": {
"content_type": "<content_type>",
"content_id": "<content_id>"
},
"name": "inspect_library_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| content_id | Yes | ||
| content_type | Yes | ||
| expected_source_revision | No | For subsequent text pages, copy insights.source_revision from the first page. |