check_code
Scan code for deprecated symbols to get replacements, reasons, and occurrences. Rewrite your code before returning it to avoid using deprecated APIs.
Instructions
ECHO-GUARD FOR CODE (read-only, no LLM): scan a generated snippet and flag every deprecated symbol it
RESURRECTS. Call it on your own output before returning code. Whole-identifier match (foo matches foo(
and x.foo, never foobar); a lexical token scan, not an AST parse. Returns [{symbol, replacement, reason,
occurrences}] for each deprecated symbol the code still uses (empty = clean) so you can rewrite before
emitting. Powered by keyed supersession — records come from deprecate_symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |