Initialization Responses
InitializeResponse
Response to theinitialize method containing negotiated protocol version and agent capabilities.
AuthenticateResponse
Response to theauthenticate method.
Session Management Responses
NewSessionResponse
Response from creating a new session.LoadSessionResponse
Response from loading an existing session.ListSessionsResponse
UNSTABLE - Response from listing sessions.ForkSessionResponse
UNSTABLE - Response from forking an existing session.ResumeSessionResponse
UNSTABLE - Response from resuming a stopped session.StopSessionResponse
UNSTABLE - Response from stopping a running session.Prompt Responses
PromptResponse
Response to a prompt request. The agent streams updates via SessionUpdate notifications during processing.Configuration Responses
SetSessionModeResponse
Response to changing the session mode.SetSessionConfigOptionResponse
Response to updating a session configuration option.SetSessionModelResponse
UNSTABLE - Response to changing the session model.File System Responses
These responses are sent from client to agent.ReadTextFileResponse
Response containing the contents of the requested file.WriteTextFileResponse
Response confirming the file was written.RequestPermissionResponse
Response containing the user’s permission decision.RequestPermissionOutcome type is a union:
Terminal Responses
These responses are sent from client to agent for terminal operations.CreateTerminalResponse
Response containing the ID of the created terminal.TerminalOutputResponse
Response containing the current terminal state and output.Terminal type includes: