check_code
Scan code snippets for deprecated symbols and get replacements, reasons, and occurrences to fix issues before returning code.
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 |