onrails
GitHub
npm
Preparing search index...
@onrails/result
mcp
toToolResponseAsync
Function toToolResponseAsync
toToolResponseAsync
<
T
,
E
extends
ErrorWithMessage
>
(
resultAsync
:
ResultAsync
<
T
,
E
>
,
)
:
Promise
<
ToolResponse
<
T
>
>
Terminate a
ResultAsync
pipeline at an MCP tool handler
Type Parameters
T
E
extends
ErrorWithMessage
Parameters
resultAsync
:
ResultAsync
<
T
,
E
>
Returns
Promise
<
ToolResponse
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
onrails
Loading...
Terminate a ResultAsync pipeline at an MCP tool handler