BB.MCP.Tools.GetState (bb_mcp v0.3.3)

Copy Markdown View Source

Get the current operational and safety state of a robot.

Returns the safety state (armed, disarmed, disarming or error), the operational state, and the list of currently executing commands. The operational states a robot can be in are declared in its DSL, so they vary per robot; idle is always one of them.

Each executing command carries an execution_id that cancel_command accepts.

The same data is available as the bb://robots/{robot}/state resource.

Summary

Functions

get_schema(atom)

mcp_schema(data)

mcp_schema!(data)