kibela_get_recently_viewed_notes
Fetch up to 15 recently viewed notes from Kibela to quickly access your recent activity.
Instructions
Get your recently viewed notes
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_recently_viewed_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of notes to fetch (max 15) |
Implementation Reference
- src/kibela.ts:161-174 (registration)Tool definition/registration constant with name, description, and input schema
const GET_RECENTLY_VIEWED_NOTES_TOOL: Tool = { name: "kibela_get_recently_viewed_notes", description: "Get your recently viewed notes", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of notes to fetch (max 15)", default: 15, }, }, }, }; - src/kibela.ts:647-680 (handler)Handler case in CallToolRequestSchema switch statement that executes the GraphQL query to fetch recently viewed notes
case "kibela_get_recently_viewed_notes": { const limit = (args.limit as number) || 15; const operation = ` query GetRecentlyViewedNotes($limit: Int!) { noteBrowsingHistories(first: $limit) { nodes { note { id title url contentUpdatedAt author { id account realName } } } } } `; const response = await client.request<RecentlyViewedNotesResponse>(operation, { limit }); const notes = response.noteBrowsingHistories.nodes.map((node) => node.note); return { content: [ { type: "text", text: JSON.stringify(notes, null, 2), }, ], }; } - src/kibela.ts:218-219 (registration)Tool listed in the ListToolsRequestSchema handler (registration in tool list)
GET_RECENTLY_VIEWED_NOTES_TOOL, GET_NOTE_FROM_PATH_TOOL, - src/types.ts:139-145 (schema)TypeScript type for the GraphQL response of recently viewed notes
export interface RecentlyViewedNotesResponse { noteBrowsingHistories: { nodes: Array<{ note: KibelaNote; }>; }; }