Bundle
redctx_bundleLoad a folder or glob selection as redacted context in one call, concatenating multiple text files with markers and truncation limits.
Instructions
Concatenate several redacted text files into one response, each wrapped in --- BEGIN @p_<id> <redacted path> --- and --- END @p_<id> ---. Use it to load a folder or a glob selection as context in one call; use redctx_read for a single file or a line range, since bundles carry no line numbers. Each file is cut at max_chars_per_file with [TRUNCATED], and when max_files or max_total_chars is reached before the last file the bundle ends with [TRUNCATED: file or total character limit reached]. A file in scope over the server's per-file byte limit (5 MB by default), or a scope over its total byte limit (50 MB by default), fails the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Shell-style patterns matched against each file's root-relative path, for example `*.md` or `notes/*.txt`; a file is kept if it matches any pattern. `*` also matches `/`, so `*.md` matches at every depth. Default `[]` means no filter. Applied within `paths`. | |
| paths | No | Files or directories to include: root-relative paths or `@p_<id>` references from earlier output. Directories are walked recursively, skipping excluded, protected, symlinked and binary files. Default `[]` means the whole root. With `glob`, only files under these paths that also match a glob are used. | |
| max_files | No | Maximum files to include. Default 80. | |
| max_total_chars | No | No further file is started once this many file characters have been emitted, so the total can exceed it by up to one file. Default 300000. | |
| max_chars_per_file | No | Maximum redacted characters kept per file; longer files end with `[TRUNCATED]`. Default 30000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The tool output, identical to the text content block and already redacted: sensitive values appear as deterministic `[CATEGORY_<hex>]` placeholders (forms declared as aliases of one entity share its hex and add a form suffix, `[CATEGORY_<hex>.<form>]`) and files as `@p_<id>` references. When the result has `isError: true`, this is a fixed error message instead, such as a limit error or the notice that context access is blocked until the operator repairs the local redaction config. | |
| receipt | Yes | Redaction statistics for this call only; never contains original values. |