PDF: attach a text file
attach_fileEmbed a Markdown or Mermaid text file as a paperclip annotation in an Okular PDF margin near text or at page top, or replace an existing attachment's file.
Instructions
Embed a text file (Markdown, Mermaid) as a paperclip annotation.
Embed a text file (e.g. notes.md, diagram.mmd) as a paperclip annotation in the margin, level with near_text or at the top of the page; or replace the file of an existing attachment replace_xref. Okular saves it via the icon's context menu. Same save-Okular-first caveat as mark_text.
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": {
"name": "<name>",
"content": "<content>"
},
"name": "attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| page | No | ||
| path | No | ||
| color | No | ||
| content | Yes | ||
| near_text | No | ||
| replace_xref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||