$k. MCP

Provides access to the parameters supplied by the AI agent in the current MCP tool call.

Methods

(static) parameter(name, fallbackopt) → {any}

Returns the value of the named MCP tool parameter supplied by the AI agent for the current tool call.

Parameters:
NameTypeAttributesDescription
namestring

Name of the parameter

fallbackany<optional>

Value to return when the parameter is not present.

Since
  • 6.1.2
Returns:

The value of the named parameter, or the fallback value if not present

Type: 
any