RootsListChangedNotification extends Notification
A notification from the client to the server, informing it that the list of roots has changed.
since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Pass directories or files through tool arguments, resource URIs or server configuration instead.
This notification should be sent whenever the client adds, removes, or modifies any root. The server should then request an updated list of roots using the ListRootsRequest.
Tags
Table of Contents
Properties
- $meta : array<string, mixed>|null
Methods
- fromArray() : self
- getMethod() : string
- jsonSerialize() : NotificationData
- fromParams() : Notification
- getParams() : array<string, mixed>|null
Properties
$meta
protected
array<string, mixed>|null
$meta
= null
Methods
fromArray()
public
static fromArray(NotificationData $data) : self
Parameters
- $data : NotificationData
Return values
selfgetMethod()
public
static getMethod() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : NotificationData
Return values
NotificationDatafromParams()
protected
static fromParams(array<string|int, mixed>|null $params) : Notification
Parameters
- $params : array<string|int, mixed>|null
Return values
NotificationgetParams()
protected
getParams() : array<string, mixed>|null