You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description:"Apply multiple file operations atomically in a single call. Supports create, update (by exact text match), delete, and rename. Operations execute in order and stop on first failure."
106
+
description:"Apply multiple file operations in a single call. Supports create, update (by exact text match), delete, and rename. Operations execute in order and stop on first failure — prior operations that succeeded remain applied."
104
107
.to_string(),
105
108
parameters: serde_json::json!({
106
109
"type":"object",
@@ -154,7 +157,7 @@ impl Tool for ApplyPatchTool {
154
157
letmut results = Vec::new();
155
158
156
159
for op in&args.operations{
157
-
// Permission check for the path
160
+
// Permission check for the target path
158
161
match op {
159
162
PatchOp::Create{ path, .. }
160
163
| PatchOp::Update{ path, .. }
@@ -164,6 +167,18 @@ impl Tool for ApplyPatchTool {
164
167
.await?;
165
168
}
166
169
}
170
+
// Rename also requires permission on the new path
0 commit comments