kibela_get_group_notes
Retrieve notes without any folder assignment from a specified group in Kibela using the group ID.
Instructions
Get notes in a group that are not attached to any folder
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Group ID |
Implementation Reference
- src/kibela.ts:99-109 (schema)Tool definition with inputSchema for kibela_get_group_notes: requires groupId (string).
const GET_GROUP_NOTES_TOOL: Tool = { name: "kibela_get_group_notes", description: "Get notes in a group that are not attached to any folder", inputSchema: { type: "object", properties: { groupId: { type: "string", description: "Group ID" }, }, required: ["groupId"], }, }; - src/kibela.ts:206-221 (registration)Tool is registered in the ListToolsRequestSchema handler, included in the tools array.
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:495-526 (handler)Handler case for kibela_get_group_notes in the CallToolRequestSchema switch: executes GraphQL query to fetch group notes not attached to any folder.
case "kibela_get_group_notes": { const { groupId } = args as { groupId: string }; const operation = ` query GetGroupNotes($groupId: ID!) { group(id: $groupId) { notes(first: 10, active: true, onlyNotAttachedFolder: true, orderBy: { field: CONTENT_UPDATED_AT, direction: DESC }) { nodes { id title contentUpdatedAt publishedAt author { account realName } } } } } `; const response = await client.request<GroupNotesResponse>(operation, { groupId }); return { content: [ { type: "text", text: JSON.stringify(response.group.notes.nodes, null, 2), }, ], }; } - src/types.ts:166-181 (helper)TypeScript interface for the GraphQL response shape returned by the handler.
export interface GroupNotesResponse { group: { notes: { nodes: { id: string; title: string; contentUpdatedAt: string; publishedAt: string; author: { account: string; realName: string; }; }[]; }; }; }