code_check
Checks whether imported modules, referenced names, methods, and arguments exist in Python, Java, Kotlin, and TS/JS code; validates changed lines, snippets, or manifest dependencies against imports.
Instructions
Python, Java, Kotlin, TS/JS imports; other languages: not_checked. For code you wrote or edited: do the modules, names, methods and arguments it uses exist? No arguments: the changes against HEAD. Each site: exists | absent (nearest names) | unknown | not_installed | guarded.
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": "code_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deps | No | Instead: the manifests' dependencies vs the imports. | |
| diff | No | A revision (e.g. 'HEAD'): only lines changed against it. | |
| paths | No | Repository-relative files or directories. | |
| as_path | No | With snippet: the file it is for. | |
| snippet | No | Code not written yet, checked as if it were in as_path. |