federated_asset
Get one attachment of a remote note — a file, not text. Canonical loop: federated_note_html(kb_id, path) -> for each name in its assets: federated_asset(kb_id, note_path=, name=). Returns the asset's size and sha256 and a short-lived download URL on this server that streams the file from the remote base; fetch it with curl (the URL needs no other credential) and check the sha256. The file itself never comes back in the tool result. Only a directly connected base: kb_id without '/'.
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": {
"kb_id": "<kb_id>",
"note_path": "<note_path>",
"name": "<name>"
},
"name": "federated_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | One name from that note's assets, copied verbatim, e.g. "files/attach.zip" | |
| kb_id | Yes | Directly connected knowledge base id, as in federated_note_html | |
| note_path | Yes | The remote note's path, exactly as passed to federated_note_html |