attach_data_assets
Attach data assets to Code Ocean capsules with optional mount paths for offline computational workflows. Use when capsules have no active cloud workstations.
Instructions
Attach one or more data assets to a capsule with optional mount paths. Use when the capsule has no running cloud workstations. For active cloud workstation sessions use attach_computation_data_assets instead. Accepts a list of parameter objects (e.g. [{'id': '...'}]), not just a list of IDs.
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": {
"capsule_id": "<capsule_id>",
"attach_params": "<attach_params>"
},
"name": "attach_data_assets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capsule_id | Yes | ||
| attach_params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |