| Methods |
public
|
__construct(Client $client, list<non-empty-string> $mimeTypes = [Apps::MIME_TYPE])
Parameters
| $mimeTypes |
The accepted UI mime types, matching the enabled extension's declaration
|
|
#
|
public
|
resolveToolMeta(Tool $tool): ?UiToolMeta
Reads a tool's _meta.ui object, falling back to the deprecated flat
_meta["ui/resourceUri"] key when the nested form carries no resourceUri.
Reads a tool's _meta.ui object, falling back to the deprecated flat
_meta["ui/resourceUri"] key when the nested form carries no resourceUri.
Implements
|
#
|
public
|
resolveResourceMeta(Resource|ResourceContents $source): ?UiResourceMeta
|
#
|
public
|
findAppTools(ListToolsResult $result): array
The tools whose _meta.ui links a UI resource, skipping any whose metadata
cannot be decoded.
The tools whose _meta.ui links a UI resource, skipping any whose metadata
cannot be decoded.
Implements
|
#
|
public
|
readAppResource(
string $uri,
?array $inputResponses = null,
?string $requestState = null,
): InputRequiredResult|ReadResourceResult
Reads a ui:// resource, verifying every returned content item carries
one of the accepted UI mime types.
Reads a ui:// resource, verifying every returned content item carries
one of the accepted UI mime types.
Implements
|
#
|