ds_rename_resource
Rename a resource file or folder in DolphinScheduler. Check workflow references first, because renaming may delete and recreate the resource, invalidating its resource_id.
Instructions
Rename a resource file or folder.
⚠️ Warning: DS may implement rename as delete + recreate, which changes the resource_id. If this resource is referenced by workflow tasks, the reference will become invalid after renaming. Check references with ds_list_workflows before proceeding.
Args: resource_id: Resource ID new_name: New name (filename or folder name only, no path prefix) description: Description resource_type: FILE or UDF
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": {
"resource_id": "<resource_id>",
"new_name": "<new_name>"
},
"name": "ds_rename_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | ||
| description | No | ||
| resource_id | Yes | ||
| resource_type | No | FILE |