largefile
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LARGEFILE_BACKUP_DIR | No | Backup directory path | ~/.largefile/backups |
| LARGEFILE_FUZZY_THRESHOLD | No | Match sensitivity (0.0-1.0) | 0.8 |
| LARGEFILE_MMAP_THRESHOLD_MB | No | Memory mapping limit in MB | 500 |
| LARGEFILE_MAX_SEARCH_RESULTS | No | Results per search | 20 |
| LARGEFILE_MEMORY_THRESHOLD_MB | No | RAM loading limit in MB | 50 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Largefile helps AI assistants work with files too large for their context windows: code, logs, and data files. Start with get_overview, then search_content to locate, read_content to examine (tail/head for logs), and edit_content with preview=true to dry-run before applying; revert_edit restores the automatic backup every edit creates. Budgeted responses carry truncated (and next_offset where a read can resume): continue from next_offset instead of re-reading. File and directory tools require absolute paths; every applied edit auto-creates a backup (backup_created).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_overviewA | Get file structure, size, and semantic outline for large files (code, logs, data). |
| search_contentA | Search large files for text patterns without loading entire content into memory. |
| read_contentA | Read specific portions of large files efficiently. |
| read_enclosingA | Find the enclosing function or class for a specific line number. Given a file and line number, returns the complete enclosing definition (function, method, class, struct, etc.) containing that line. Use depth=2 to get the parent definition (e.g., the class containing a method). Falls back to a centered context window for unsupported languages or top-level code. |
| edit_contentA | Edit large files using search/replace with fuzzy matching. |
| revert_editA | Restore a file to a previous state from automatic backups. |
| list_directoryA | List the contents of a directory. |
| search_directoryA | Search for a text pattern across all files in a directory. |
| find_filesA | Find files by name across a directory tree. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool targets a clearly distinct operation: reading (read_content, read_enclosing), searching (search_content vs. search_directory split cleanly by file vs. directory scope), editing (edit_content, revert_edit), navigation (list_directory, find_files), and structural analysis (get_overview). Descriptions explicitly disambiguate near-neighbors, e.g. read_content says it does NOT search, and find_files says it never reads contents.
All nine tools follow a consistent snake_case verb_noun pattern (get_overview, search_content, edit_content, list_directory, find_files, read_content, read_enclosing, revert_edit, search_directory). No camelCase or vague bare verbs mixed in.
Nine tools is well within the ideal range and each earns its place, covering the reading, searching, editing, reverting, and navigation needs of a large-file workflow without redundancy.
The read/search/edit/revert lifecycle is comprehensively covered, including semantic outline and enclosing-definition lookup. The one notable gap is file creation/write — an agent cannot create a new file, only edit existing ones, though this may be outside the 'largefile' scope.