list_messages
Search the full message history by topic, text, status, kind, or work status. Returns newest first; use fields to project results and avoid large bodies.
Instructions
Search the full message history with optional filters. Use 'topic' for substring match on the topic, 'text' for substring match across topic OR body ('where did we discuss merchant_id'); 'status' (open/resolved), 'kind' and 'work_status' for exact match on structured fields. Returns newest first. 'pin_key' filters to proposals STRUCTURALLY linked to a pin (the field set at send time) — messages that merely mention the key in their text are deliberately NOT matched, which is the difference between this and text=. Optional 'fields' projects the response: a list of field names, or the single value 'headers' for the usual listing set (everything except the bodies). Omit it and the full record comes back exactly as before. Use it when a listing over a long history would otherwise be too large to return — bodies dominate the size, and a 'which messages' question rarely needs them; fetch the ones you want individually afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| text | No | ||
| limit | No | ||
| since | No | ||
| topic | No | ||
| fields | No | ||
| status | No | ||
| pin_key | No | ||
| to_role | No | ||
| from_role | No | ||
| unread_only | No | ||
| work_status | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||