tool_search_attachments
Search Messages attachments by date range, contact, or MIME type to locate specific files, returning metadata only.
Instructions
Search message attachments by date range, contact, and MIME type.
This is read-only and returns metadata only; it does not return file bytes or
modify attachments. Requires Full Disk Access for the host app or terminal.
Filenames, MIME types, paths, and sender labels are structurally neutralized
and wrapped in <untrusted-mcp-output>. Use this to find candidate files
cheaply, then call tool_get_attachment for one specific attachment. Use
tool_fuzzy_search_messages when searching message text instead of attachment
metadata.
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": "tool_search_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of attachment metadata rows to return. | |
| contact | No | Optional contact name, phone number, or email address filter. | |
| end_date | No | Optional inclusive end date in "YYYY-MM-DD" format. | |
| mime_type | No | Optional MIME type or prefix filter, such as "image/" or "application/pdf". | |
| start_date | No | Optional inclusive start date in "YYYY-MM-DD" format. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |