get_data_asset_file_urls
Retrieve view and download URLs for specific files within Code Ocean data assets to access stored content.
Instructions
Generate view and download URLs for a specific file from an internal data asset.Call only when the data asset is already created and in a ready state. If the asset may not yet be ready, first use wait_until_ready to poll until readiness, then retrieve the download URL.
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": {
"data_asset_id": "<data_asset_id>",
"file_path": "<file_path>"
},
"name": "get_data_asset_file_urls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_asset_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_url | Yes | ||
| download_url | Yes |