add_parameter
Add a parameter to a function signature at the end or start without modifying the function body. Use this to avoid retyping the entire signature for minor additions.
Instructions
Add a parameter to a function signature at position 'end' (default) or 'start'. Leaves the body untouched.
Use this when: You need to add one or two parameters without retyping the whole
signature.
Don't use this when: You need to replace the entire signature -> use
replace_signature. You also want to change the body -> use replace_function.
Example: target="LRUCache.get" parameter="default=None" position="end"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes | ||
| parameter | Yes | ||
| position | No | end |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |