pack
Read and search multiple project files in one call: combine regex searches with context, whole-file or partial reads, glob listings, and git status to reduce tool round trips.
Instructions
Read and search the project in ONE call instead of several: a regex search (with the lines around each hit if you ask), any number of files (whole, a line range, or one function), glob listings and git status together. Use it whenever you need 2+ files, or a search plus what it finds. Output is size-capped; .env files and keys are redacted.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Subdirectory of the workspace to work in (default: the workspace root). | |
| files | No | Files to read: 'src/app.ts' (whole), 'src/app.ts:10-80' (lines), 'src/app.ts#handleLogin' (one function or class), 'src/app.ts#' (outline). | |
| globs | No | Globs to list, e.g. 'src/**/*.ts'. | |
| query | No | Regex to search the repo for (plain text with literal: true). | |
| context | No | Lines of code to show around each search hit (0-30), so the matches need no second read. | |
| literal | No | Treat query as plain text. | |
| max_bytes | No | Inline size cap, 4000-44000; overflow goes to files. | |
| git_status | No | Include git status. | |
| inline_only | No | Never spill to files. | |
| max_matches | No | Search hit cap (default 80, max 300). | |
| allow_secrets | No | Show secret files. Only when the user asked. |