list_notes
Retrieve paginated notes from GetNote platform using cursor-based pagination. Start with since_id=0, then use last note's ID for subsequent pages to fetch 20 notes per request.
Instructions
获取笔记列表(每次固定返回 20 条)。首次请求 since_id 传 0,后续用上一页最后一条笔记的 ID。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since_id | No | 游标,返回 ID 小于此值的笔记。首次传 0 |
Implementation Reference
- src/index.ts:559-562 (handler)The handler in `src/index.ts` that processes the `list_notes` tool request by calling `client.listNotes`.
case "list_notes": { const since_id = (input.since_id as number | string | undefined) ?? 0; return client.listNotes({ since_id }); } - src/index.ts:58-73 (registration)The registration of the `list_notes` tool definition in `src/index.ts`.
{ name: "list_notes", description: "获取笔记列表(每次固定返回 20 条)。首次请求 since_id 传 0,后续用上一页最后一条笔记的 ID。", inputSchema: { type: "object" as const, properties: { since_id: { type: ["number", "string"], description: "游标,返回 ID 小于此值的笔记。首次传 0", default: 0, }, }, required: [], }, }, - src/client.ts:96-100 (handler)The implementation of `listNotes` in `src/client.ts` that makes the actual API call.
async listNotes(params: { since_id: number | string }) { return this.request<ListNotesResp>("GET", "/resource/note/list", { since_id: params.since_id, }); }