kibela_get_note_from_path
Retrieve content from a specific Kibela note by providing its path. Enables AI assistants to access and utilize stored information efficiently.
Instructions
Get note content by note path
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Note path (e.g. /notes/123) |
Implementation Reference
- src/tools/getNoteFromPath.ts:23-43 (handler)The main handler function for the kibela_get_note_from_path tool. It validates the path argument, fetches the note using GraphQL, and returns a formatted text content response.handler: async (args) => { if (!args.path) { throw new Error('Note path is required') } const response = await getNoteFromPath({ path: args.path }) if (!response.noteFromPath) { throw new Error('Note not found') } return { content: [ { type: 'text', text: JSON.stringify(response.noteFromPath, null, 2), }, ], } }, }
- src/tools/getNoteFromPath.ts:9-22 (schema)Schema definition for the tool, including name, description, and input schema specifying the required 'path' parameter.tool: { name: 'kibela_get_note_from_path', description: 'Get note content by note path', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Note path (e.g. /notes/123)', }, }, required: ['path'], }, },
- src/tools/index.ts:13-13 (registration)Registration of the getNoteFromPathTool under the name 'kibela_get_note_from_path' in the central toolDefinitions object.kibela_get_note_from_path: getNoteFromPathTool,
- Helper function that executes the GraphQL query to fetch note by path, used by the tool handler.export async function getNoteFromPath(variables: GetNoteFromPathVariables): Promise<GetNoteFromPathResponse> { return gqlRequest(getNoteFromPathQuery, variables) }