buggy_scan
Scan every supported function in a Python file and return one line per function to triage unfamiliar code, with optional preconditions, postconditions, budget, and timeout controls.
Instructions
Investigate every supported function in a Python file and return one line per function. Use it to triage a file you are unfamiliar with. Note that any preconditions and postconditions apply to all functions alike, which is blunt; investigate individually for anything that matters.
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": {
"file": "<file>"
},
"name": "buggy_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the Python file, absolute or relative to cwd. | |
| budget | No | Inputs to execute before giving up. Default 300. | |
| timeout | No | Seconds allowed per call. Default 2. | |
| preconditions | No | Preconditions as PYTHON expressions over the parameter names, e.g. 'budget > 0'. For an instance method the constructor's parameters are in scope too. Inputs that fail these are skipped, so they also decide which inputs a fix is allowed to change. | |
| postconditions | No | Postconditions as PYTHON expressions. 'result' is the return value, e.g. 'result >= 0'. A condition that cannot be evaluated is reported as a warning, never silently skipped. |