feat(tools): require reason argument for delete and git_operator tools
This commit is contained in:
@@ -28,9 +28,13 @@ impl Tool for Delete {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Path to the file or directory to delete (relative to workspace root)"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"description": "Reason for the deletion (must be non-empty, >= 8 chars)"
|
||||
}
|
||||
},
|
||||
"required": ["path"]
|
||||
"required": ["path", "reason"]
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -30,9 +30,13 @@ impl Tool for GitOperator {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Arguments for the git subcommand"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"description": "Explain why this git operation is needed (>= 8 chars)"
|
||||
}
|
||||
},
|
||||
"required": ["operation", "args"]
|
||||
"required": ["operation", "args", "reason"]
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user