add_object
Create a new object in a cell, optionally nested under a parent component, and get a summary of the created object.
Instructions
Add a new object (prime or component) to a cell. Optionally adds the object as a child of an existing component via parentName. Returns the created object summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new object (must be unique across the project) | |
| type | Yes | Object type | |
| 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. | |
| cellName | Yes | Cell label to add the object to | |
| parentName | No | Optional: name of an existing component in the same cell to add this object into as a child. Without it, the object is added at cell top level. Errors if the named object is not a component. | |
| properties | No | Optional properties to set (x, y, width, height, content, tags, etc.) |