final | |
|---|---|
readonly | |
extends |
Result |
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, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Properties | |||
|---|---|---|---|
public
|
list<Root>
|
$roots
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |