get_live_state
Retrieves live frontend state for a given namespace, including unsaved plan and assembly data. Use specific queries to get component state, summary data, or mutation status for the active tab.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "get_live_state"
}
}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 |