batch_file_operations
Execute multiple file operations—create, update, append, delete, rename—in a single transaction with rollback capabilities for error handling. Enhances directory management efficiency.
Instructions
Perform multiple file operations in a single transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
operations | Yes | Array of file operations to perform | |
rollback_on_error | No | Rollback all operations if any fails |
Input Schema (JSON Schema)
{
"properties": {
"operations": {
"description": "Array of file operations to perform",
"items": {
"properties": {
"operation": {
"description": "Type of operation",
"enum": [
"create",
"update",
"append",
"delete",
"rename"
],
"type": "string"
},
"params": {
"description": "Parameters for the operation",
"type": "object"
}
},
"required": [
"operation",
"params"
],
"type": "object"
},
"type": "array"
},
"rollback_on_error": {
"default": true,
"description": "Rollback all operations if any fails",
"type": "boolean"
}
},
"required": [
"operations"
],
"type": "object"
}