kibela_get_note_content
Retrieve specific note content from Kibela by providing its note ID, enabling efficient data access and information management within the MCP Kibela server.
Instructions
Get note content by note ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Note ID |
Implementation Reference
- src/tools/getNoteContent.ts:23-42 (handler)The handler function for the 'kibela_get_note_content' tool. It validates the note ID, fetches the note using the getNote GraphQL function, and returns the note data as a JSON-formatted text content block.handler: async (args) => { if (!args.id) { throw new Error('Note ID is required') } const response = await getNote({ id: args.id }) if (!response.note) { throw new Error('Note not found') } return { content: [ { type: 'text', text: JSON.stringify(response.note, null, 2), }, ], } },
- src/tools/getNoteContent.ts:10-22 (schema)The schema definition for the tool, including name, description, and input schema requiring a 'id' string parameter.name: 'kibela_get_note_content', description: 'Get note content by note ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Note ID', }, }, required: ['id'], }, },
- src/tools/index.ts:9-16 (registration)Registration of all tools including 'kibela_get_note_content' mapped to its tool definition in the central toolDefinitions object.const toolDefinitions = { kibela_search_notes: searchNotesTool, kibela_get_my_notes: getMyNotesTool, kibela_get_note_content: getNoteContentTool, kibela_get_note_from_path: getNoteFromPathTool, kibela_update_note_content: updateNoteContentTool, kibela_create_note: createNoteTool, } as const
- src/graphql/queries/getNote.ts:27-29 (helper)Helper function that executes the GraphQL query to retrieve a note by ID, used by the tool handler.export async function getNote(variables: GetNoteVariables): Promise<GetNoteResponse> { return gqlRequest(getNoteQuery, variables) }