kibela_get_my_notes
Retrieve your most recent notes from Kibela, with an option to limit the number fetched up to 50.
Instructions
Get your latest notes from Kibela
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kibela_get_my_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of notes to fetch (max 50) |
Implementation Reference
- src/kibela.ts:45-58 (schema)Tool definition (name, description, inputSchema) for kibela_get_my_notes. It accepts an optional 'limit' number (default 15, max 50).
const GET_MY_NOTES_TOOL: Tool = { name: "kibela_get_my_notes", description: "Get your latest notes from Kibela", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of notes to fetch (max 50)", default: 15, }, }, }, }; - src/kibela.ts:206-221 (registration)Tool registration via ListToolsRequestSchema handler, including GET_MY_NOTES_TOOL in the list of available tools.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ SEARCH_NOTES_TOOL, GET_MY_NOTES_TOOL, GET_NOTE_CONTENT_TOOL, GET_GROUPS_TOOL, GET_GROUP_FOLDERS_TOOL, GET_GROUP_NOTES_TOOL, GET_FOLDER_NOTES_TOOL, GET_USERS_TOOL, LIKE_NOTE_TOOL, UNLIKE_NOTE_TOOL, GET_RECENTLY_VIEWED_NOTES_TOOL, GET_NOTE_FROM_PATH_TOOL, ], })); - src/kibela.ts:304-340 (handler)Handler implementation for kibela_get_my_notes. Executes a GraphQL query 'GetMyNotes' via currentUser.latestNotes, extracts notes from the response, and returns them as JSON text.
case "kibela_get_my_notes": { const limit = (args.limit as number) || 15; const operation = ` query GetMyNotes($limit: Int!) { currentUser { latestNotes(first: $limit) { totalCount edges { node { id title url contentUpdatedAt author { id account realName } } } } } } `; const response = await client.request<NotesResponse>(operation, { limit }); const notes = response.currentUser.latestNotes.edges.map((edge) => edge.node); return { content: [ { type: "text", text: JSON.stringify(notes, null, 2), }, ], }; } - src/types.ts:78-87 (schema)TypeScript type NotesResponse used to type the GraphQL response from the GetMyNotes query.
export interface NotesResponse { currentUser: { latestNotes: { totalCount: number; edges: Array<{ node: KibelaNote; }>; }; }; }