Skip to main content

ToolExecutionTuple

@codebolt/types


Type Alias: ToolExecutionTuple<TSuccess, TError>

type ToolExecutionTuple<TSuccess, TError> = [false, TSuccess] | [true, TError];

Defined in: common/types/src/codeboltjstypes/libFunctionTypes/mcp.ts:59

Standard tuple format for tool execution responses used over MCP:

  • [false, result] => success
  • [true, error] => error

TSuccess: shape of the successful result payload TError: shape of the error payload (usually string)

Type Parameters

Type ParameterDefault type
TSuccessunknown
TErrorstring