bear_context_ingest
Lists untriaged files from the inbox directory with filename, size, content preview, and YAML front matter for review before taking action.
Instructions
Scan the inbox/ directory and list all untriaged files. Returns filename, size, content preview (first 500 chars), and any detected YAML front matter for each file. Does NOT modify anything — use bear_context_triage to act on files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server/src/tools.ts:1023-1039 (handler)The tool definition and handler for 'bear_context_ingest'. The buildArgs function constructs the CLI args ['context', 'ingest', '--json'] which are executed via execBcliWithReauth in index.ts. The tool has no input parameters and is marked as read-only/idempotent.
bear_context_ingest: { tool: { name: "bear_context_ingest", description: "Scan the inbox/ directory and list all untriaged files. Returns filename, size, content preview (first 500 chars), and any detected YAML front matter for each file. Does NOT modify anything — use bear_context_triage to act on files.", inputSchema: { type: "object" as const, properties: {}, }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }, buildArgs: () => ["context", "ingest", "--json"], }, - mcp-server/src/index.ts:29-31 (registration)Tools are registered with the MCP server by mapping all tool definitions from tools.ts via ListToolsRequestSchema handler.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: Object.values(tools).map((t) => t.tool), })); - mcp-server/src/tools.ts:1028-1032 (schema)The input schema for bear_context_ingest — an empty object with no properties, since this tool takes no arguments.
inputSchema: { type: "object" as const, properties: {}, }, annotations: {