nexus_download_asset
Download a single repository asset's raw bytes by exact asset ID, returning base64 up to a size limit or writing directly to a specified local file.
Instructions
Download a single asset's raw content by its exact ID. Returns base64 content bounded by max_size_bytes, or writes to save_path when provided. Complements nexus_download_component for callers that already have a precise asset_id (e.g. from search or nexus_get_component) and want the raw bytes directly.
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": {
"asset_id": "<asset_id>"
},
"name": "nexus_download_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | Asset ID to download | |
| save_path | No | Local file path to write the content to. Omit to receive base64 content instead. | |
| max_size_bytes | No | Maximum bytes to download before aborting (default 10 MiB, max 100 MiB) |