get_messages
Access your received messages with details of sender, content, and time. Optionally filter by status to find specific communications.
Instructions
查看收到的消息。返回消息列表含发送者、内容、时间。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | 状态过滤(可选) |
Implementation Reference
- src/index.ts:1041-1044 (handler)The handler case for 'get_messages' that parses args via GetMessagesSchema and calls client.getMessages(p.status).
case 'get_messages': { const p = S.GetMessagesSchema.parse(args); result = await client.getMessages(p.status); break; - src/schemas.ts:157-159 (schema)Zod schema for GetMessagesSchema, validates optional 'status' string parameter.
export const GetMessagesSchema = z.object({ status: z.string().optional(), }); - src/index.ts:714-723 (registration)Registration of 'get_messages' tool with name, description, and inputSchema in the tools array.
{ name: 'get_messages', description: '查看收到的消息。返回消息列表含发送者、内容、时间。', inputSchema: { type: 'object' as const, properties: { status: { type: 'string', description: '状态过滤(可选)' }, }, }, }, - src/index.ts:156-158 (helper)Registration of tool name 'get_messages' under the 'messaging' feature group.
messaging: [ 'send_message', 'get_messages', 'list_conversations', 'get_conversation', ], - src/acap-client.ts:400-403 (helper)The low-level API client method getMessages that makes a GET request to /acap/v1/messages with optional status filter.
async getMessages(status?: string) { const params = status ? `?status=${status}` : ''; return this.request('GET', `/acap/v1/messages${params}`); }