Overview
Notifications are one-way messages that do not expect a response. They are used to inform the other party about events or state changes.Session Cancellation
CancelNotification
Notification to cancel ongoing operations for a session. See Cancellation.The ID of the session to cancel operations for
Optional metadata
Usage
When a client sends this notification, the agent should:- Stop all language model requests as soon as possible
- Abort all tool call invocations in progress
- Send any pending
session/updatenotifications - Respond to the original
session/promptrequest withStopReason::Cancelled
Request Cancellation
CancelRequestNotification
Protocol-level notification to cancel a specific in-flight JSON-RPC request. See Request Cancellation.The request identifier to cancel (JSON-RPC Request ID)
Optional metadata
Usage
This is a protocol-level notification that can be sent by either party to request cancellation of a specific pending request. The receiving party should make a best effort to cancel the request but may not be able to guarantee cancellation.Session Updates
SessionNotification
Notification containing a session update from the agent. Used to stream real-time progress and results during prompt processing. See Agent Reports Output.The ID of the session this update pertains to
The actual update content. Can be one of many types:
UserMessageChunkSessionUpdate- User message contentAgentMessageChunkSessionUpdate- Agent message contentAgentThoughtChunkSessionUpdate- Agent internal thoughtsToolCallSessionUpdate- New tool callToolCallUpdateSessionUpdate- Tool call status updatePlanSessionUpdate- Execution plan updateAvailableCommandsUpdateSessionUpdate- Available commands updateCurrentModeUpdateSessionUpdate- Mode changeConfigOptionUpdate- Configuration changeSessionInfoUpdate- Session metadata updateUsageUpdate- Token usage update
Optional metadata
Usage
Clients receive these notifications throughout the lifetime of a prompt request. They should:- Update the UI in real-time to reflect agent progress
- Continue accepting tool call updates even after sending a
session/cancelnotification - Handle all update types gracefully, including unknown types for forward compatibility
Extension Notifications
ExtNotification
Allows custom notifications that are not part of the ACP specification.Extension notifications use method names with a leading underscore (e.g.,
_custom_notification).
ACP reserves the _ prefix for extensions.