Inspect a layout through MCP

View raw Markdown

Use Inspector MCP search, node reads, relationships, process data, and viewport evidence to investigate a Visual Components layout.

Investigation pattern

Start broad, keep the returned node IDs and ancestor IDs, then read only the objects that answer the investigation question. This sequence keeps the MCP conversation grounded in the current layout and makes stale-node failures easy to recognize.

Selected Lifter highlighted in the Automatic Warehouse System layout after MCP camera focus

Find a target

  1. Call vc_session to record the current session and validate any cached node IDs.
  2. Call vc_search with a case-insensitive regular expression when the target is known by name or text. Use a preset such as components, processModeling, interfaces, or properties to narrow the question.
  3. Call vc_find_by_type when the target is better described by an interface type, component category, or property filter.
  4. Keep ancestorNodeIds from the result when a later navigation operation needs the object's context.

For example, a component search for Lifter in the public warehouse layout returned the Lifter component as ISimComponent, with node ID n3 and ancestors n2, world. Node IDs belong to the current MCP session; validate them again after a layout boundary or when a read reports a stale ID.

Read the evidence

Use the smallest tool that answers the next question:

The live Lifter read returned its ConveyorSpeed, TotalHeight, world position, transform, and bounds. Its relationship query identified connected conveyor interfaces, while vc_process_model reported that it is a conveyor but not a Process Modeling component.

Investigate process and space

Use these read-focused queries when the question crosses object boundaries:

Interpret an empty or unavailable result in context. For example, the public warehouse layout reported no active product-flow matches because its simulation was stopped at time 0.0; that result does not prove that a Process Modeling definition is absent.

Confirm the visual result

Use vc_get_selection to check the current VC selection, vc_camera to read the camera or focus the viewport, and vc_screenshot with returnMode: "inline" when the client needs model-visible image content. vc_screenshot does not include UI overlays. vc_user_interface can read application context and panel state, and can capture the viewport with overlays when the Direct3DViewportViewModel panel is requested.

These operations can change the selection, camera, focus mode, or visible UI without editing the layout. Treat them as UI-state actions and inspect the result before continuing.

Result checklist

See Inspector MCP tool access for the full capability and risk boundary. See Connect to the Inspector MCP server when the endpoint is not running.