Skip to main content
WSS
wss://api.raccoonai.tech
/
ws
/
chat
/
{chatId}
?token=
{token}
&message_id=
{messageId}
Messages
chatId
type:string
required

Session ID from start a new turn endpoint

messageId
type:string
required

Message ID from start a new turn endpoint.

token
type:string
required

Raccoon AI API key

Other optional query params: - last_stream_entry_id - Last received stream entry ID for reconnection (e.g., "0-0")

Connection Acknowledged
type:object

Confirms WebSocket connection established

Task State Snapshot
type:object

Complete current state of the task

Phase Changed
type:object

Task execution phase changed

Block Created
type:object

New content block created

Block Updated
type:object

Existing block state updated

Markdown Chunk
type:object

Streaming markdown content

Agent Thought
type:object

Agent reasoning/thinking content

Text Content
type:object

Plain text content

Tool Started
type:object

Tool execution started

Tool Parameters
type:object

Parameters passed to tool

Tool Log
type:object

Tool stdout/stderr output

Tool Result
type:object

Tool execution completed

Plan Updated
type:object

Todo list updated

Focus Changed
type:object

Agent's current focus/activity

Message Received
type:object

User message received by agent

Sandbox Snapshot
type:object

Sandbox file system state updated

Context Usage
type:object

LLM context window usage

Dev Server Ready
type:object

Development server started

Web Plan Request
type:object

Agent requesting user approval for plan

Task Completed
type:object

Task finished successfully

Task Aborted
type:object

Task stopped by user or system

Task Error
type:object

Task failed with error

Send Message
type:object

Send a message to the running task

Stop Task
type:object

Stop the running task

Retract Message
type:object

Retract the last queued message

File Edits
type:object

Notify agent of user file edits