carrel_pack
Pack a file or directory into LLM-ready context with a file tree plus extracted text from supported documents, so you can feed structured source material to models.
Instructions
Pack a file or directory into LLM-ready context: file tree plus extracted text of supported files (text, pdf, office, ebook).
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": {
"path": "<path>"
},
"name": "carrel_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max query hits to pack. | |
| path | Yes | File or directory to pack. | |
| root | No | Desk root (default: server --root / cwd). | |
| query | No | Relevance-rank files by this desk-index query. | |
| format | No | json: structured object; md/xml: rendered pack document. | json |
| exclude | No | Drop files/dirs matching these globs. | |
| include | No | Only pack files matching these globs. | |
| max_bytes | No | Content budget in bytes; files past it are listed but omitted. | |
| tree_only | No | Tree without contents. |