get_directory_context
Recursively load and cache an entire directory's files as formatted context for AI agents, reducing multiple file reads to a single call.
Instructions
Recursively packages all files in a directory and returns them as formatted context for AI agents.
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": {
"rootPath": "<rootPath>"
},
"name": "get_directory_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootPath | Yes | Root directory path to recursively include | |
| configPath | No | Path to contextcache.json (optional) | |
| excludePatterns | No | Additional glob patterns to exclude |