bear_get_note
Retrieve a Bear note's full content, metadata, tags, and dates by its ID. Optionally get only the raw markdown without metadata.
Instructions
Get a single Bear note's full content and metadata by ID. Returns the note title, tags, full markdown text, and dates. The response includes 'tags' (CloudKit index, may contain ancestor tags like 'parent' for a note tagged '#parent/child') and 'attached_tags' (leaves only). If the note is locked/private, 'locked: true' will be included in the response. Use the 'raw' option to get just the markdown without metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note ID (uniqueIdentifier) | |
| raw | No | Return only the raw markdown content |
Implementation Reference
- mcp-server/src/tools.ts:58-71 (schema)Input schema for bear_get_note: requires 'id' (string) and optional 'raw' (boolean).
inputSchema: { type: "object" as const, properties: { id: { type: "string", description: "Note ID (uniqueIdentifier)", }, raw: { type: "boolean", description: "Return only the raw markdown content", }, }, required: ["id"], }, - mcp-server/src/tools.ts:78-82 (handler)buildArgs handler for bear_get_note: builds CLI args array ['get', <id>, '--json'] with optional '--raw' flag.
buildArgs: (input) => { const args = ["get", String(input.id), "--json"]; if (input.raw) args.push("--raw"); return args; }, - mcp-server/src/tools.ts:53-83 (registration)Registration of bear_get_note in the tools record with tool metadata (name, description, schema, annotations, buildArgs).
bear_get_note: { tool: { name: "bear_get_note", description: "Get a single Bear note's full content and metadata by ID. Returns the note title, tags, full markdown text, and dates. The response includes 'tags' (CloudKit index, may contain ancestor tags like 'parent' for a note tagged '#parent/child') and 'attached_tags' (leaves only). If the note is locked/private, 'locked: true' will be included in the response. Use the 'raw' option to get just the markdown without metadata.", inputSchema: { type: "object" as const, properties: { id: { type: "string", description: "Note ID (uniqueIdentifier)", }, raw: { type: "boolean", description: "Return only the raw markdown content", }, }, required: ["id"], }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }, buildArgs: (input) => { const args = ["get", String(input.id), "--json"]; if (input.raw) args.push("--raw"); return args; }, },