Topic blocks
get_topic_blocksReturns one course topic's blocks with titles, PUIDs, paths, levels, and file IDs for pinning or assigning lessons; identify the topic by index or partial title.
Instructions
Returns the blocks of one topic of a course, each with title, PUID, block path and its levels (title, PUID, type, and fileId where known): everything pin_block needs, and the fileId that get_lesson and assign_lesson take. Identify the topic by topicIndex from list_topics or by part of its title. Much smaller than get_plan.
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": {
"project": "<project>"
},
"name": "get_topic_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Course project ID, e.g. "c-mat-4" | |
| topicIndex | No | 0-based topic index from list_topics | |
| topicTitle | No | Partial topic title match (case-insensitive) — alternative to topicIndex |