add_parameter
Add parameters to function signatures in code files without modifying function bodies. Use this tool to insert parameters at the start or end of signatures.
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 |