final | |
|---|---|
readonly | |
extends |
Result<array{_meta?: array<string, mixed>, roots: list<template-type<Root, Arrayable, 'T'>>}> |
implements |
ClientResult |
The client's response to a roots/list request from the server. This result contains an array of Root objects,
each representing a root directory or file that the server can operate on.
| Methods | ||
|---|---|---|
public
|
__construct(list<Root> $roots, ?array $meta = null)
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\Result\Result |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
list<Root>
|
$roots
|
# |
| Properties inherited from Nexus\Mcp\Schema\Result\Result |
|---|
$meta |