pack_repo
Fetch a GitHub repository and return it as one agent-ready context blob: text files concatenated with clear "==== path ====" headers, binaries/lockfiles/build dirs stripped, with a token estimate. Use include/exclude globs to focus, and max_tokens to fit a budget.
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": {
"repo": "<repo>"
},
"name": "pack_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch, tag or commit SHA (defaults to the default branch). | |
| repo | Yes | A GitHub repo as "owner/repo" or a github.com URL. | |
| exclude | No | Optional glob patterns (support **, *, ?). | |
| include | No | Optional glob patterns (support **, *, ?). | |
| max_tokens | No | Stop adding files once the estimate exceeds this many tokens. |