get_topic_tree
Explore Khan Academy's educational content hierarchy by retrieving subtopics and materials for any subject or topic. Start with a subject slug to navigate through course structures and access learning resources.
Instructions
Browse Khan Academy's subject/topic hierarchy. Given a topic slug, returns its subtopics and content items. Use list_subjects first to get valid slugs, then drill down.
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": {
"slug": "<slug>"
},
"name": "get_topic_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Topic slug or URL (e.g., 'math', 'science/biology', 'math/algebra') | |
| depth | No | How many levels deep to fetch (0=this topic only, 1=immediate children, max 3) |