final | |
|---|---|
readonly | |
extends |
JsonRpcRequest<'tools/call', array{jsonrpc: '2.0', id: (int|non-empty-string), method: 'tools/call', params: template-type<CallToolRequestParams, RequestParams, 'T'>}> |
implements |
ClientRequest |
Used by the client to invoke a tool provided by the server.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $id, CallToolRequestParams $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
|
CallToolRequestParams
|
$params
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest |
|---|
$id |