container_rename
Rename a container in place; its ID, state, and configuration stay unchanged. Use it to free up or claim a name, with a conflict error if the new name is taken.
Instructions
Rename a container in place; its id, state, and configuration are unchanged.
Use it to free up or claim a container name (names are unique per daemon) - e.g. before
starting a replacement under the old name. Fails with a conflict error if the new name is
already taken. Not related to image_tag, which names images.
Args: name: The new name; must not be in use by any other container
Returns: dict: The container's full inspect payload after the rename
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": {
"id_or_name": "<id_or_name>",
"name": "<name>"
},
"name": "container_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| id_or_name | Yes |