check_git_safety
Scan staged or target files for conflict markers, hardcoded secrets, and debug statements to prevent unsafe commits.
Instructions
Scan target or staged files for conflict markers (<<<<<<<), hardcoded secrets/API keys, and leftover debug statements. Use before git commit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_git_safety"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional array of specific file paths to scan. Defaults to all staged/modified Git files. | |
| project_path | No | Optional target project directory path. |