MCP PHP SDK

ToolExecution implements JsonSerializable

Execution-related properties of a Tool.

Table of Contents

Interfaces

JsonSerializable

Properties

$taskSupport  : TaskSupport|null

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : ToolExecutionData|stdClass

Properties

Methods

fromArray()

public static fromArray(ToolExecutionData $data) : self
Parameters
$data : ToolExecutionData
Return values
self

jsonSerialize()

public jsonSerialize() : ToolExecutionData|stdClass
Return values
ToolExecutionData|stdClass —

an empty execution encodes as }, not []

On this page

Search results