search_media_references
Find messages that shared a file, image, PDF, or link in a specific channel. Use to locate shared documents, images, or URLs posted by team members.
Instructions
Find messages that SHARED a file, image, PDF, or link in one channel. Call it when the user is hunting for an attachment or URL ("where's the design doc", "find the screenshot Alice posted") rather than for the knowledge in the text.
When to use: locating shared documents, images, or links. When NOT to use: general fact/knowledge search (use search_channel_facts or ask_channel) — this tool only returns messages that carry media.
Prerequisites: a channel_id from list_channels.
Returns (instant, read-only): {media: [{text, media_urls, link_urls, link_titles, author, timestamp, media_type, fact_id}, ...]}. No side
effects.
Error modes (returned as dicts): 'authentication_missing' (no principal);
'channel_access_denied' (token lacks access to channel_id). Other internal
failures return an empty {media: []}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | Channel id. Get it from list_channels (e.g. 'ch-eng'). Required. | |
| query | Yes | Search query describing the media you want (e.g. 'architecture diagram' or 'pricing pdf'). Required. | |
| media_type | No | Optional media-type filter. One of: 'image' (photos/screenshots), 'pdf' (documents), 'link' (URLs), or null for all. Default null. | |
| limit | No | Max results, 1-20 (out-of-range values are clamped). Default 5. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||