append_to_body
Insert content at the bottom of a function body while preserving existing statements. Use for adding final lines like cleanup, telemetry, or logging after work is done.
Instructions
Insert content at the bottom of a function body, preserving existing statements.
Use this when: You're adding one or two lines at the END of a function (cleanup,
telemetry, final return statements, logging after work is done).
Don't use this when: You're replacing the whole body -> use replace_function_body.
You're adding to the top -> use prepend_to_body.
Example: target="LRUCache.get" content=" # end"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |