replace_value
Update the value of an existing key in JSON, YAML, or TOML files. Specify the file, target key path, and new 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 |