Skip to main content

manage_rigidbody

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​

Inspect or configure a Rigidbody or Rigidbody2D.

Parameters​

NameTypeRequiredDescription
actionLiteral['get_rigidbody', 'configure_rigidbody']yesFeature action to perform.
dimensionstr | None—Physics dimension: '3d' (default) or '2d'.
targetstr | None—Target GameObject name or instance ID.
search_methodstr | None—Search method for target resolution.
propertiesdict[str, Any] | None—Direct property dict for joints or materials.
unity_instancestr | 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​

Read a 3D Rigidbody on Player. Replace the target with an unambiguous object in the loaded scene.

MCP arguments
{
"action": "get_rigidbody",
"dimension": "3d",
"target": "Player",
"search_method": "by_name"
}