diagnose_physics
Auto-generated from the Python tool registry. Do not hand-edit outside
<!-- examples:start --><!-- examples:end -->blocks — the generator (tools/generate_docs_reference.py) will overwrite them.
Group: physics · Module: services.registry.capability_adapter
Maturity: stable (support status; independent of enabled state, readiness and permissions).
Description
Validate physics setup or inspect a pair of colliders and passive contacts. May start or stop passive contact observation without advancing simulation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | Literal['validate', 'diagnose_pair'] | yes | Feature action to perform. |
dimension | str | None | — | Physics dimension: '3d' (default) or '2d'. |
target | str | None | — | Target GameObject name or instance ID. |
collider_type | str | None | — | Specific collider type to target. |
search_method | str | None | — | Search method for target resolution. |
page_size | int | None | — | Page size for validate results: 1-1000 (default 50). |
cursor | int | None | — | Cursor offset for validate pagination. |
component_index | int | None | — | Zero-based index to select which component when multiple of the same type exist (e.g., multiple HingeJoints or BoxColliders). If omitted, targets the first instance. |
other_target | str | None | — | diagnose_pair: second GameObject name, path or instance ID. |
other_collider_type | str | None | — | diagnose_pair: exact second collider type when needed. |
other_component_index | int | None | — | diagnose_pair: zero-based second collider index after type filtering. |
other_search_method | Literal['by_id', 'by_name', 'by_path'] | None | — | How to resolve other_target; inferred independently when omitted. |
contact_limit | int | None | — | diagnose_pair: 2D contact-point sample size, 1–128 (default16); 3D reports event counts. |
observe_contacts | bool | str | None | — | diagnose_pair: opt in to a60-second passive3D pair watch; false stops, omitted only reads. Never simulates or enables contact generation. |
unity_instance | str | int | None | — | Target Unity instance for this call: Name@hash or hash prefix; an integer selects only that exact port over stdio and is rejected over HTTP. Read mcpforunity://instances for available targets. Omit to use the legacy active selection or the sole available instance. |
Returns
A dict containing the Unity response. The exact shape depends on the action.
Examples
Inspect collider evidence for one scene object. Replace Player with the object to diagnose. The small page is useful when the object owns multiple colliders.
MCP arguments
{
"action": "validate",
"dimension": "3d",
"target": "Player",
"search_method": "by_name",
"page_size": 10
}