list_attachments
Inspect files embedded in a PDF: list each attachment's name, type, size, byte-detected format, and whether it may be executable or disguised before extracting it.
Instructions
List the files embedded in a PDF (attached to the document or to a page): name, description, declared type and size, the type detected from the file's own bytes, and whether it can run on a computer or has a name that hides what it is. Use the names with extract_attachments.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "list_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | No | ||
| input_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| truncated | Yes | ||
| attachments | Yes |