Aleph
Gateway RPCMethods Reference

Methods Reference

Overview of all Gateway RPC method namespaces

The Aleph Gateway exposes its functionality through namespaced JSON-RPC 2.0 methods. Each namespace groups related operations, and every method follows the same request/response conventions.

Request Format

All RPC requests use the JSON-RPC 2.0 envelope:

{
  "jsonrpc": "2.0",
  "id": "unique-id",
  "method": "namespace.method",
  "params": { ... }
}
  • id can be a string, number, or null (null for notifications).
  • method follows the namespace.action naming convention.
  • params is an optional JSON object specific to each method.

Response Format

Success:

{
  "jsonrpc": "2.0",
  "id": "unique-id",
  "result": { ... }
}

Error:

{
  "jsonrpc": "2.0",
  "id": "unique-id",
  "error": {
    "code": -32601,
    "message": "Method not found",
    "data": null
  }
}

Error Codes

CodeNameDescription
-32700Parse errorMalformed JSON
-32600Invalid RequestMissing required fields
-32601Method not foundUnknown method name
-32602Invalid paramsBad or missing parameters
-32603Internal errorServer-side failure
-32000Auth requiredNo credentials provided
-32001Auth failedInvalid token or signature
-32002Permission deniedInsufficient permissions
-32003Rate limitedToo many requests
-32004Resource not foundRequested entity does not exist
-32005TimeoutOperation timed out
-32006Tool errorTool execution failed

Method Namespaces

agent.*

Core agent execution and control. Start runs, stream responses, check status, and manage conversation history.

MethodDescription
agent.runStart an agent run with a message
agent.cancelCancel a running agent
agent.statusGet the status of a run
agent.historyGet conversation history
agent.clearClear session history

Full reference -->

session.*

Session lifecycle management. Create, list, inspect, export, and delete conversation sessions.

MethodDescription
session.getGet session details
session.listList all sessions
session.historyGet message history
session.compactCompress session context
session.deleteDelete a session
session.exportExport session data

Full reference -->

config.*

Runtime configuration management. Read, patch, replace, and reload configuration without restarting the server.

MethodDescription
config.getGet current configuration
config.patchApply a partial update
config.applyReplace full configuration
config.reloadReload from config file
config.validateValidate a config object

Full reference -->

exec.*

Command execution approval system. Request, resolve, and manage approval policies for shell commands.

MethodDescription
exec.approval.requestRequest execution approval
exec.approval.resolveResolve a pending approval
exec.approvals.getGet approval configuration
exec.approvals.setUpdate approval configuration
exec.approvals.pendingList pending approvals

Full reference -->

wizard.*

Multi-step configuration wizards. Start guided setup flows, answer steps, and track wizard progress.

MethodDescription
wizard.startStart a wizard session
wizard.answerAnswer current step
wizard.nextAdvance to next step
wizard.cancelCancel wizard
wizard.statusCheck wizard status

Full reference -->

cron.*

Scheduled job management. Create, list, trigger, pause, and resume cron jobs that execute agent prompts on a schedule.

MethodDescription
cron.createCreate a scheduled job
cron.listList all jobs
cron.getGet job details
cron.deleteDelete a job
cron.triggerManually trigger a job
cron.pausePause a job
cron.resumeResume a paused job

Full reference -->

events.*

Event subscription and streaming. Subscribe to real-time events using glob patterns.

MethodDescription
events.subscribeSubscribe to event topics
events.unsubscribeUnsubscribe from topics
events.listList active subscriptions

Full reference -->

browser.*

Browser automation via Chrome DevTools Protocol. Navigate pages, interact with elements, take screenshots, and extract content.

MethodDescription
browser.navigateNavigate to a URL
browser.clickClick an element
browser.typeType text into an element
browser.screenshotCapture a screenshot
browser.evaluateRun JavaScript
browser.snapshotGet ARIA accessibility snapshot

Full reference -->

Additional Namespaces

These namespaces provide access to extended functionality. Methods marked with * are wired at runtime; stubs/placeholders return errors until their subsystem is initialized.

Core Infrastructure

NamespaceMethodsDescription
auth.*connect, pairing.approve, pairing.reject, pairing.list, devices.list, devices.revoke, auth.show_token, auth.reset_token, auth.list_sessions, auth.revoke_sessionAuthentication and device management
agents.*list, get, create, update, delete, set_default, files.list, files.get, files.set, files.delete, tools_schema, bindings, teamsAgent CRUD and file management
sessions.*list, history, reset, delete, new, set_topic, patch, preview, compaction.list, compaction.restore, compaction.branchSession lifecycle (plural namespace)
session.*create, usage, compactSession operations (singular namespace)
channels.*list, status, set_agentChannel management
channel.*start, stop, pairing_data, send, create, deleteSingle channel operations

Configuration

NamespaceMethodsDescription
config.*reload, get, validate, path, get_tool_permissions, update_tool_permissionsRuntime configuration
providers.*list, get, create, update, delete, setDefault, test, needsSetup, oauthLogin, oauthLogout, oauthStatusAI provider management
agent_config.*get, update, get_file_ops, update_file_ops, get_code_exec, update_code_exec, get_tool_permissions, update_tool_permissionsPer-agent configuration
general_config.*get, updateGeneral settings
browser_config.*get, updateBrowser automation settings
behavior_config.*get, updateAgent behavior settings
generation_config.*get, updateGeneration settings
execution_config.*get, updateExecution settings
memory_config.*get, updateMemory system settings
mcp_config.*list, get, create, update, deleteMCP server configuration
rerank_config.*get, update, testReranker configuration
search_config.*get, update, test, deleteBackendSearch backend configuration
security_config.*get, update, list_devices, revoke_deviceSecurity settings
routing_rules.*list, get, create, update, delete, moveTask routing rules

Memory & Knowledge

NamespaceMethodsDescription
memory.*search, stats, delete, clear, listFacts, clearFacts, appList, compress, reembed, reembed.cancel, retrieve_with_traceMemory system
graph.*query, neighbors, node_detail, searchKnowledge graph

Skills, Plugins & Tools

NamespaceMethodsDescription
skills.*status, update, install_dep, remove, installSkill System v2 management
plugin.*list, install, installFromZip, uninstall, enable, disable, load, unload, reload, callTool, executeCommandPlugin lifecycle (canonical)
plugins.*list, install, installFromZip, uninstall, enable, disable, load, unload, callTool, executeCommandPlugin lifecycle (legacy)
plugin.marketplace.*list, add, update, remove, installPlugin marketplace
tools.*catalog, effectiveTool visibility
commands.*list, executeCommand discovery and execution

Agent Execution & Chat

NamespaceMethodsDescription
agent.*run, status, cancel, respondToInput, listAgent execution control
chat.*send, abort, history, clearChat interface
run.*wait, queue_messageRun lifecycle (from runs.rs)

Multi-Agent & Teams

NamespaceMethodsDescription
group_chat.*start, continue, mention, end, list, historyMulti-agent group chat
teams.*list, get, disband, deleteTeam management
arena.*create, query, settleMulti-agent arena
clawhub.*search, browse, detail, installClawHub agent registry

Scheduling & Services

NamespaceMethodsDescription
cron.*list, get, create, update, delete, status, run, runs, toggleScheduled jobs
heartbeat.*list, get, create, update, delete, toggle, wake, runsHeartbeat probes
services.*start, stop, list, statusBackground services

System & Observability

NamespaceMethodsDescription
system.*infoSystem metrics
healthhealthHealth check
versionversionServer version
echoechoEcho test
logs.*getLevel, setLevel, getDirectoryLog management
daemon.*status, shutdown, logsDaemon control
trace.*list, getTrace replay
activity.*statsActivity statistics

Identity & Guests

NamespaceMethodsDescription
identity.*get, set, clear, listIdentity/soul management
guests.*createInvitation, listPending, revokeInvitation, listSessions, terminateSession, getActivityLogsGuest session management

Workspace & Runtimes

NamespaceMethodsDescription
workspace.*create, list, get, update, archiveWorkspace isolation
runtimes.*list, refresh, installRuntime capability management

Generation & Providers

NamespaceMethodsDescription
generation_providers.*list, get, create, update, delete, setDefault, test, voicesMedia generation providers
embedding_providers.*list, get, add, update, remove, setActive, test, presetsEmbedding providers

MCP & ACP

NamespaceMethodsDescription
mcp.*list_pending_approvals, respond_approval, cancel_approvalMCP approval handling
acp.*list, get, create, update, delete, test, set_enabled, presets, presets_metaACP harness config

Schema & Introspection

NamespaceMethodsDescription
schema.*list, get, protocol, openapiSchema introspection
config.schemaconfig.schemaConfig schema

Discord Panel

NamespaceMethodsDescription
discord.*validate_token, save_config, list_guilds, list_channels, audit_permissions, update_allowlistsDiscord control panel

Common Patterns

Pagination

Methods that return lists accept optional limit and offset parameters:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "session.list",
  "params": {
    "limit": 20,
    "offset": 0
  }
}

Filtering

List methods support an optional filter parameter for narrowing results:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "cron.list",
  "params": {
    "filter": {
      "enabled": true,
      "agent_id": "main"
    }
  }
}

Streaming Methods

Methods like agent.run trigger streaming events. Subscribe to stream.* topics to receive real-time data:

// 1. Subscribe to stream events
{ "jsonrpc": "2.0", "id": 1, "method": "events.subscribe", "params": { "patterns": ["stream.*"] } }

// 2. Start an agent run
{ "jsonrpc": "2.0", "id": 2, "method": "agent.run", "params": { "message": "Hello" } }

// 3. Receive stream events (no id = notification)
{ "jsonrpc": "2.0", "method": "event", "params": { "topic": "stream.chunk", "data": { "text": "Hi!" } } }

See Also

On this page