Get link graph
get_graphMap page links in a wiki space as nodes and edges, optionally limited to a page's neighborhood, to reveal hubs, clusters, and connection paths for content analysis.
Instructions
Returns the link graph of one space as nodes and edges, from pages the caller can see: each node is a page (id, title, kind, path, tags, degree = distinct neighbours) and each edge a link source -> target with its count. With page, only that page and the pages within depth link hops of it (1-3, default 1), following links out of it, into it, or both. Optional nodes: tags (page -> tag edges), files (attachments linked from pages), unresolved (link targets that do not exist). Use it to find hub pages, clusters and how pages connect; read_page a node id for its content. Pages beyond limit (default 300) are left out, most recently changed kept, and truncated says so.
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": {
"space": "<space>"
},
"name": "get_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page id: return only its neighbourhood | |
| tags | No | Include tags as nodes (default false) | |
| depth | No | Link hops from page, 1-3 (default 1) | |
| files | No | Include linked space files as nodes (default false) | |
| limit | No | Maximum number of pages (1-2000, default 300) | |
| space | Yes | Space slug | |
| orphans | No | Keep pages without links (default true) | |
| direction | No | With page: follow links out of it, into it, or both (default) | |
| unresolved | No | Include link targets that do not exist (default false) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Links between the nodes, source -> target | |
| limit | Yes | ||
| nodes | Yes | Pages the caller can open, plus tag, file and unresolved nodes when asked for | |
| center | No | The page the neighbourhood is around | |
| truncated | Yes | True when pages were left out because of the limit | |
| totalPages | Yes | Readable pages in scope before the limit |