check_snippet
Statically analyze Python code using CuPy or nvmath-python to detect nonexistent functions, modules, or enum members, invalid arguments, and missing required parameters without running it.
Instructions
Statically check Python code that uses CuPy / nvmath-python without running it: reports functions, modules and enum members that do not exist (with the closest real names), unknown or positional-only keyword arguments, too many positional arguments and missing required arguments.
Args:
code: Python source code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "check_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |