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:
| Name | Type | Attributes | Description |
|---|---|---|---|
name | string | Name of the parameter | |
fallback | any | <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