MCP TypeScript SDK
V2 Docs
Preparing search index...
experimental
BaseToolCallback
Type Alias BaseToolCallback<SendResultT, ExtraT, Args>
Experimental
BaseToolCallback
:
Args
extends
ZodRawShapeCompat
?
(
args
:
ShapeOutput
<
Args
>
,
extra
:
ExtraT
,
)
=>
SendResultT
|
Promise
<
SendResultT
>
:
Args
extends
AnySchema
?
(
args
:
unknown
,
extra
:
ExtraT
)
=>
SendResultT
|
Promise
<
SendResultT
>
:
(
extra
:
ExtraT
)
=>
SendResultT
|
Promise
<
SendResultT
>
Base callback type for tool handlers.
Type Parameters
SendResultT
extends
Result
ExtraT
extends
RequestHandlerExtra
<
ServerRequest
,
ServerNotification
>
Args
extends
undefined
|
ZodRawShapeCompat
|
AnySchema
=
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V2 Docs
MCP TypeScript SDK
Loading...
Base callback type for tool handlers.