Get knowledge graph.
Arguments
lookup_targetobjectOptional. Omit to search the main preview branch (the default). Set this to target another preview branch, a deployed environment, or a published release; unresolved targets are returned as not found.
caller_selectorboolean | string · min length 1 · max length 4096 | array of string · min length 1 · max length 4096 | objectCaller-selected document scope. Source membership and server-trusted knowledge policy are intersected with this selector before pagination; denied nodes, edges, broken-link labels and counts are filtered.
root_file_version_idstring · uuidProvide the root file version id.
root_pathstring · min length 1 · max length 1024Provide the root path.
max_depthinteger · min 0 · max 3Link hops from the root, 0 to 3; omit the root to read the whole visible set. Responses over 512 KiB fail with a size limit (REST 413, MCP PAYLOAD_TOO_LARGE). Narrow the graph with root_path, max_depth, filters or pagination.limit (GraphQL rootPath, maxDepth, filters or pagination.limit).
filtersobjectProvide the filters.
paginationobjectProvide the pagination.
project_referencestring · min length 1Project whose knowledge is selected. Ordinary callers require project.knowledge.read. A run-bound MCP service credential instead must match the persisted run's project and agent plus its actor or runtime transport binding; its effective sealed authority must grant the invoked tool and a knowledge selector. On project-scoped MCP endpoints, the scoped project supplies this value when omitted.
Responses
curl -X POST -N "https://api.veryfront.com/mcp" \ -H "Authorization: Bearer $VERYFRONT_API_KEY" \ -H "Accept: application/json, text/event-stream" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "veryfront__get_knowledge_graph", "arguments": {} }}'{ "jsonrpc": "2.0", "id": 1, "result": { "content": [ { "type": "text", "text": "{\"nodes\":[{\"file_id\":\"00000000-0000-0000-0000-000000000000\",\"file_version_id\":\"00000000-0000-0000-0000-000000000000\",\"path\":\"string\",\"title\":\"string\",\"type\":\"string\",\"tags\":[\"string\"],\"reserved\":false}],\"edges\":[{\"source_file_version_id\":\"00000000-0000-0000-0000-000000000000\",\"target_file_version_id\":\"00000000-0000-0000-0000-000000000000\",\"ordinal\":0}],\"external_links\":[{\"source_file_version_id\":\"00000000-0000-0000-0000-000000000000\",\"ordinal\":0,\"url\":\"string\"}],\"broken_links\":[{\"source_file_version_id\":\"00000000-0000-0000-0000-000000000000\",\"ordinal\":0,\"target_path\":\"string\"}],\"returned_nodes\":0,\"total_nodes\":0,\"partial\":false,\"links_truncated\":false,\"limit\":1,\"page_info\":{\"self\":\"string\",\"first\":{},\"next\":\"string\",\"prev\":{}}}" } ], "structuredContent": { "nodes": [ { "file_id": "00000000-0000-0000-0000-000000000000", "file_version_id": "00000000-0000-0000-0000-000000000000", "path": "string", "title": "string", "type": "string", "tags": [ "string" ], "reserved": false } ], "edges": [ { "source_file_version_id": "00000000-0000-0000-0000-000000000000", "target_file_version_id": "00000000-0000-0000-0000-000000000000", "ordinal": 0 } ], "external_links": [ { "source_file_version_id": "00000000-0000-0000-0000-000000000000", "ordinal": 0, "url": "string" } ], "broken_links": [ { "source_file_version_id": "00000000-0000-0000-0000-000000000000", "ordinal": 0, "target_path": "string" } ], "returned_nodes": 0, "total_nodes": 0, "partial": false, "links_truncated": false, "limit": 1, "page_info": { "self": "string", "first": {}, "next": "string", "prev": {} } } }}The tool ran; its output is result.structuredContent.