Overview
TheServicesClient is the Room API for inspecting the services that are currently running in a room session.
Use it when you want to:
- see which saved services are actually running in the active room
- inspect runtime state such as container id, restart count, and last exit code
- request a restart for a running room service without changing its saved deployment spec
meshagent service command instead.
CLI commands
Start with the CLI help, then use a few common commands:bash
Why use the Services API?
- check whether a deployed room or project service is actually running in the current session
- inspect runtime state without leaving the room context
- restart one managed room service while leaving the saved service definition alone
How it works
Saved services are deployed with themeshagent service command or generated through higher-level flows such as meshagent process deploy.
Once a room session is active, those saved services become running workloads in the room runtime. The ServicesClient gives you visibility into that runtime layer:
list()returns the service specs visible in the roomlist_with_state()/listWithState()adds runtime state details from the room service controllerrestart()asks MeshAgent to stop the current container for one service so it can come back up cleanly
meshagent service. The Room Services API tells you what is running right now.
Permissions and grants
Room service inspection and restart use the roomservices toolkit surfaced by the runtime. In practice, use the normal room connection path for operator tooling and deploy the service with the room/API access it needs.
For the broader deployment permission model, see API Scopes, Participant Tokens, and Deploy Services with MeshAgent.
API reference
list()
- Description: List the services currently visible in the room runtime.
- Returns: A list of
ServiceSpecvalues.
list_with_state() / listWithState()
- Description: List services plus runtime state details from the service controller.
- Returns:
ListServicesResultwith:services: the service specsservice_states: runtime state keyed by service id
restart(service_id) / restart({ serviceId })
- Description: Request a restart for one running room service.
- Parameters:
service_id/serviceId: the room service id to restart
- Returns:
None