push_value
Append a value to a nested array path in Purl Studio; additive operation modifies only the target array, preserving siblings and unrelated entries. Use instead of set_property for adding items to array-shaped properties.
Instructions
Append a value to an array at a nested path. Additive — only the target array is touched; siblings and unrelated entries stay intact. Errors if the target isn't an array. Use this instead of set_property for adding items to a DATA prime's value (or any other array-shaped property).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Dotted/bracketed path to the array (e.g., "value", "value.records", "value.config.scores"). Bracket-indexed segments allowed for nested arrays. | |
| value | Yes | Value to append. Any JSON: scalar, array, or object. Required. | |
| prompt | Yes | THE USER'S EXACT PROMPT — verbatim, word-for-word, as typed. Do not summarize, paraphrase, translate, or shorten. Copy the user's message into this field exactly. Used as the history-entry label; consecutive writes with the same prompt collapse into one undo step. | |
| target | Yes | Name of the object whose property holds the array (formerly `objectName`, still accepted) | |
| cellName | No | Optional: cell to search in (by label) | |
| expectedVersion | No | Optional precondition: hash of the top-level property (from get_object's `_versions[topSlot]`). When supplied, the call is rejected if the top slot has changed since you read it. Optional because push is additive — supply when you need to ensure no concurrent edit slipped in. |