Skip to main content

Workspaces, agents, Fleet, and skills

Scope: SessionRpc (per-session operations tied to a Session) For an overview of RPC and the list of all RPC pages, see RPC.

autopilotObjective

autopilotObjective()->getState() returns the session’s current Autopilot objective state as a typed object. If no objective exists, state is null. This API differs from workspaces()->autopilotObjectiveExists(), which checks whether an objective is saved in the workspace.
setStayInAutopilot() suppresses requests to return to interactive mode when an objective completes or pauses. The setting is kept in client memory and defaults to true. Pass false as value to stop suppressing. Set it again after you reconnect.
Last modified on November 19, 2026