replace_value
Update existing key values in JSON, YAML, or TOML files using AST-based editing to ensure precise modifications without affecting surrounding content.
Instructions
Replace the value of an existing key in a JSON, YAML, or TOML file.
Use this when: A key already exists and you want to update its value.
Don't use this when: The key doesn't exist yet -> use add_key. You're modifying
an array -> use append_to_array or remove_from_array.
Example: target="project.version" content='"2.0.0"'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |