sed_object_store
Perform regex-based find and replace on a stored string object, returning a new object ID with the edited content.
Instructions
Find and replace text in a string stored in the object store using regex.
Applies substitution (like sed s/pattern/replacement/) and stores the result
as a new object, returning its ID. The original object is not modified.
:param object_id: The id of the object to modify in the format @obj_001.
:param pattern: Regular expression pattern to find.
:param replacement: Replacement string. Supports backreferences like \1, \2.
:param path: Navigation path to a nested string attribute (optional).
:param count: Maximum number of replacements (0 = replace all, default: 0).
:param case_sensitive: Whether the pattern match should be case sensitive (default: False).
:return: New object ID with the modified string and a preview of the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_id | Yes | ||
| pattern | Yes | ||
| replacement | Yes | ||
| path | No | ||
| count | No | ||
| case_sensitive | No |