list_document_attachments
Lists attachment IDs found in a document by parsing content for attachment links. Helps discover, retrieve, or audit attachments within a document.
Instructions
List attachment IDs referenced in a document.
Parses document content for attachment references (e.g.
/api/attachments.redirect?id=<uuid>) and returns a list of
attachment IDs with context snippets.
Use this tool when you need to:
- Discover attachments within a document
- Find attachment IDs for use with get_attachment_url or
fetch_attachment
- Audit what files a document references
Args:
document_id: The document ID to scan
Returns:
Formatted list of attachment IDs and context
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "list_document_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |