bundle_search
Run a full-text search and combine matching file bodies into a single prompt-ready bundle (XML or markdown), capped by token budget.
Instructions
Run an FTS search and concatenate matched bodies into a single prompt-ready bundle (XML <document> blocks or markdown headers + fences) capped at max_tokens. Files are added in rank order until the next would exceed the budget; the rest go to skipped[]. Read-only; no side effects, auth, or rate limits. Use instead of search + N×read_file when you need several related files as one context blob. Defaults: format=xml, max_tokens=50000. project_id: null = KB only; tags[] requires ALL to match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Full-text search query | |
| project_id | No | Filter by project ID. Pass null to bundle ONLY Knowledge Base files. | |
| tags | No | Filter by tags (all must match) | |
| favorite | No | Filter by favorite status | |
| format | No | Bundle format. xml = Anthropic-recommended <document> tags; markdown = ## headers + fenced blocks | xml |
| max_tokens | No | Token budget. Files added in rank order until the next would exceed; remainder go to skipped[] |