as_backup_file
Create a timestamped backup of any file in the workspace to protect against data loss. Returns the backup file path.
Instructions
Create a timestamped backup of a single file in the server backup dir.
Args: params (BackupFileInput): path.
Returns: str: JSON with the backup path.
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": {
"params": "<params>"
},
"name": "as_backup_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |