Frontmatter
| id | 8185 |
| title | Feat: Neural Link - Visual Inspection (DomRect) |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 28, 2025, 10:03 PM |
| updatedAt | Dec 29, 2025, 10:12 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8185 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 29, 2025, 10:12 PM |
Feat: Neural Link - Visual Inspection (DomRect)
tobiu added parent issue #8169 on Dec 28, 2025, 10:03 PM
tobiu assigned to @tobiu on Dec 29, 2025, 10:06 PM

tobiu
Dec 29, 2025, 10:11 PM
Input from Gemini 3:
✦ I have implemented the Visual Inspection (DomRect) feature.
Changes:
Client-Side (
src/ai/client/ComponentService.mjs):
- Implemented
getDomRectwhich acceptscomponentIds(array).- It uses the first component ID to resolve the
windowIdcontext.- Calls
Neo.component.Base#getDomRectto fetch rects from the main thread.- Updated
src/ai/Client.mjsto mapget_dom_rect.Server-Side (
ai/mcp/server/neural-link/):
- Updated
ComponentService.mjsto exposegetDomRect.- Updated
toolService.mjsto register the tool.- Updated
openapi.yamlto define/component/rect/getand theGetDomRectRequestschema.Note: The implementation strictly requires
componentIdsto be an array of strings, ensuring a consistent tool shape as requested.
tobiu closed this issue on Dec 29, 2025, 10:12 PM
Context: Agents need to understand the physical layout of components to debug visibility and interaction issues.
component.Baseprovides a powerfulgetDomRectmethod that can fetch one or many rects.Scope:
Enhance
ComponentService:getDomRect(sessionId, componentIds).Neo.getComponent(id).getDomRect(componentIds).DOMRectobjects.Tools:
get_dom_rect: AcceptscomponentId(string) ORcomponentIds(array of strings). Always returns an array ofDOMRectobjects.Goal: Provide bulk physical layout inspection capabilities.