Skip to content

Messages Reference

Complete reference of all JSON-RPC methods in the Agent Host Protocol, organized by direction and type.

Client → Server Requests

These methods have an id and expect a response.

MethodDescriptionReference
initializeHandshake — establishes the connection and protocol versionLifecycle
reconnectRe-establishes a dropped connection with replay or snapshotLifecycle
subscribeSubscribe to a URI-identified state resourceSubscriptions
createSessionCreate a new agent sessionCommands
disposeSessionDispose a session and clean up resourcesCommands
listSessionsFetch session summariesCommands
fetchTurnsFetch historical turns for a sessionCommands
resourceReadRead content by URICommands
resourceWriteWrite content to a file on the server filesystemCommands
resourceListList directory entries on the server filesystemCommands
resourceCopyCopy a resource from one URI to anotherCommands
resourceDeleteDelete a resource at a URICommands
resourceMoveMove a resource from one URI to anotherCommands
resourceRequestRequest access to a resource (also Server → Client)Commands

Client → Server Notifications

These methods have no id and expect no response.

MethodDescriptionReference
unsubscribeStop receiving updates for a URISubscriptions
dispatchActionFire-and-forget action dispatch (write-ahead)Actions

Server → Client Notifications

These are pushed by the server without a preceding request.

MethodDescriptionReference
actionDelivers an ActionEnvelope to subscribed clientsActions
notificationEphemeral protocol notification (e.g. session added/removed)Notifications

Version Introduction

All messages listed above were introduced in protocol version 1.

Released under the MIT License.