system.ping
Health check endpoint that returns the current server time.Request
Parameters
No parameters required.Response
Always returns
trueCurrent server time in ISO 8601 format
Example
system.shutdown
Gracefully shutdown the loaf runtime server. Aborts all active sessions and clears queues.Request
Parameters
Optional reason for shutdown (for logging/debugging)
Response
Always returns
true if shutdown was initiatedThe reason provided for shutdown
Example
state.get
Retrieve the current runtime state snapshot including auth, model selection, sessions, and skills.Request
Parameters
No parameters required.Response
Authentication state
Array of enabled auth providers:
["openai", "openrouter", "antigravity"]Whether OpenAI OAuth token is configured
Whether OpenRouter API key is configured
Whether Antigravity OAuth token is configured
Antigravity user profile (if authenticated)
Model selection state
Currently selected model ID
Selected thinking level:
"low", "medium", "high", or "extended"Selected OpenRouter provider (if using OpenRouter)
Selected provider:
"openai", "openrouter", or "antigravity"Example
onboarding.status
Get the current onboarding status.Request
Response
Whether the onboarding flow has been completed
Whether at least one provider is authenticated
onboarding.complete
Mark the onboarding flow as complete.Request
Response
command.execute
Execute a slash command in a session context.Request
Session ID to execute the command in
Raw command string (e.g.,
/model, /skills, /clear)Response
Whether the command executed successfully
Command output (if any)
skills.list
List all discovered skills.Request
Response
Array of skill objects with
name, path, and description fieldstools.list
List all registered tools (built-in and custom).Request
Response
Array of tool names
debug.set
Enable or disable super debug mode.Request
Whether to enable super debug mode
Response
Related
- RPC overview - Protocol fundamentals
- Session methods - Managing sessions
- Auth methods - Authentication