capture_file
Ingest a file or log from disk into an ephemeral index, enabling hybrid BM25 and semantic search with line-level context for large outputs.
Instructions
Reads a file or log output from disk and ingests it into the ephemeral search index.
Validate the intended file path before calling: resolve symlinks when path
identity matters, confirm the file belongs to the expected workspace, and
use an explicit bounded max_bytes for large or untrusted files. Capture
limits control output handling; they do not validate filesystem intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| file_path | Yes | ||
| max_bytes | No | ||
| content_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |