Get attachment
codecks_get_attachmentRetrieve a single Codecks attachment by ID, with optional field selection and safe relation expansion, for markdown or JSON responses.
Instructions
Get a single attachment by ID with optional field selection.
Available fields: content, createdAt, title Relations: account, card, creator, file
Example selection: ["content", "createdAt", "title"]
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": {
"id": "<id>"
},
"name": "codecks_get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Model ID | |
| selection | No | Selection array (fields/relations) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |
| include_relations | No | Attempt safe first-level relation expansion with guarded fallback |