ListRootsRequest

Sent from the server to request a list of root URIs from the client.

Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on.

This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.

Note: Unlike most other requests, this is sent from the server to the client, not from client to server. The client must support the roots capability with listChanged = true to receive these requests.

Constructors

Link copied to clipboard
constructor(params: BaseRequestParams? = null)

Properties

Link copied to clipboard

Convenience accessor for params's metadata.

Link copied to clipboard
open override val method: Method

The request method identifier.

Link copied to clipboard
open override val params: BaseRequestParams?

Optional request parameters containing metadata.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.