task_set_directories
Replaces a backup task's directory list, verifies the stored paths by reading them back, and restores the previous list with an error if they do not match. Requires confirm:true.
Instructions
Replaces the directory list of a backup task, reads it back and reports before/after; if P5 did not store exactly the requested list the old value is restored and an error is returned. Requires confirm:true.
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": {
"task": "<task>",
"directories": "<directories>"
},
"name": "task_set_directories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task id | |
| confirm | No | Must be true to actually run | |
| directories | Yes | Absolute paths as seen by the P5 server |