code_check
Verify Python, Java, Kotlin, or TS/JS imports, names, methods, arguments, and keys exist in the project and environment before running edited code.
Instructions
Python, Java, Kotlin, TS/JS imports; other languages: not_checked (exit 4). For code you wrote or edited: do the modules, names, methods, arguments and keys it uses exist in the project and its environment? Input: paths, diff (a revision; nothing: changes against HEAD), or snippet + as_path. Each site: exists | absent (nearest names) | unknown | not_installed | guarded; exit 3 = absent.
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. |