Proposed by Gemini 3 Pro.
Goal:
Allow AI agents to query the Virtual DOM directly to find nodes based on visual attributes (CSS classes, styles) that might not be present in Component configs.
New Tool: query_vdom
- Service:
ComponentService
- Logic: Uses
Neo.util.VDom.find().
- Params:
rootId (String, optional): Component ID to start search from.
selector (Object): VDOM selector (e.g., { cls: 'my-class' } or { id: 'my-node' }).
- Returns: The matching VDOM node(s).
Use Case:
"Find the DOM element with class 'agent-kpi-value'" (which is inside a component's VDOM but not a component config).
Proposed by Gemini 3 Pro.
Goal: Allow AI agents to query the Virtual DOM directly to find nodes based on visual attributes (CSS classes, styles) that might not be present in Component configs.
New Tool:
query_vdomComponentServiceNeo.util.VDom.find().rootId(String, optional): Component ID to start search from.selector(Object): VDOM selector (e.g.,{ cls: 'my-class' }or{ id: 'my-node' }).Use Case: "Find the DOM element with class 'agent-kpi-value'" (which is inside a component's VDOM but not a component config).