get_live_state
Retrieve or update live frontend state to reflect unsaved changes in plans, assemblies, and component creator fields.
Instructions
Get or set live frontend state. Reflects all unsaved changes, including for assemblies (harness:* namespace). Use setComponentState to update the Component Creator form fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Plan (project:*): getData (PlanData), getSummary (counts). Assembly (harness:*): getData (BOM + connections + positions), getSummary (part/connection counts). Both: canUndo, canRedo. Component creator: getComponentState, getSvgElements, setComponentState. | |
| params | No | Parameters for mutations like setComponentState. Keys: form (mpn, manufacturer, description, img_url, datasheet_url), spec (gender, shape, category, positions, rows, series, pitch_mm, wire_awg_min, wire_awg_max), svg (clear, elements, pins), action ("save" to save component, "createNew" to reset) | |
| namespace | No | Target tab namespace |