get_knowledge_file
Retrieve complete knowledge documents with metadata and chapters for comprehensive review, backups, or migrations. Ensure full content access while optimizing large documents with chapter operations.
Instructions
Retrieve complete content of a knowledge document including all metadata and chapters.
When to use this tool:
Needing full document for comprehensive review
Backing up or exporting documents
Migrating content between projects
Loading small documents completely
Key features:
Returns complete document with all chapters
Includes metadata (title, keywords, introduction)
Preserves document structure
Full content access
You should:
Consider using chapter operations for large documents
Check document exists first
Include .md extension in filename
Be aware this loads entire document into memory
Use chapter iteration for partial access
Cache result if accessing multiple times
DO NOT use when:
Only need specific chapters (use get_chapter)
Document is very large (use chapter operations)
Just need to search content (use search_knowledge)
Returns: {success: bool, document?: object, error?: str}
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filename | Yes | Knowledge file name (must include .md extension) | |
project_id | Yes | The project identifier |