final | |
|---|---|
readonly | |
extends |
JsonRpcRequest<'resources/read', array{jsonrpc: '2.0', id: (int|non-empty-string), method: 'resources/read', params: template-type<ReadResourceRequestParams, RequestParams, 'T'>}> |
implements |
ClientRequest |
Sent from the client to the server, to read a specific resource URI.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $id, ReadResourceRequestParams $params)
|
# |
public
static
|
getMethod(): string
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest |
|---|
jsonSerialize() |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
readonly
|
ReadResourceRequestParams
|
$params
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest |
|---|
$id |