Class Nexus\Mcp\Core\Schema\Tool\Tool

final
readonly
extends BaseMetadata
implements Arrayable<array{name: non-empty-string, title?: non-empty-string, description?: non-empty-string, inputSchema: array{type: 'object', $schema?: non-empty-string, properties?: array<string, array<string, mixed>>, required?: list<string>}, outputSchema?: array{type: 'object', $schema?: non-empty-string, properties?: array<string, array<string, mixed>>, required?: list<string>}, annotations?: template-type<ToolAnnotations, Arrayable, 'T'>, execution?: template-type<ToolExecution, Arrayable, 'T'>, icons?: list<template-type<Icon, Arrayable, 'T'>>, _meta?: template-type<MetaObject, Arrayable, 'T'>}>, Icons

Definition for a tool the client can call.

  • Nexus\Mcp\Core\Schema\BaseMetadata
    • Nexus\Mcp\Core\Schema\Tool\Tool implements Arrayable<array{name: non-empty-string, title?: non-empty-string, description?: non-empty-string, inputSchema: array{type: 'object', $schema?: non-empty-string, properties?: array<string, array<string, mixed>>, required?: list<string>}, outputSchema?: array{type: 'object', $schema?: non-empty-string, properties?: array<string, array<string, mixed>>, required?: list<string>}, annotations?: template-type<ToolAnnotations, Arrayable, 'T'>, execution?: template-type<ToolExecution, Arrayable, 'T'>, icons?: list<template-type<Icon, Arrayable, 'T'>>, _meta?: template-type<MetaObject, Arrayable, 'T'>}>, Icons
Type aliases
ToolSchemaShape array{type: 'object', $schema?: non-empty-string, properties?: array<string, array<string, mixed>>, required?: list<string>} #
Methods
Properties
Properties inherited from Nexus\Mcp\Core\Schema\BaseMetadata
$name, $title