Skip to contents

Create an ellmer tool object from a loaded RAVE MCP tool definition. This allows using RAVE pipelines and tools directly via the ellmer package.

Usage

mcptool_instantiate(tool, ..., state_env = NULL)

Arguments

tool

An object of class ravepipeline_mcp_tool (loaded via mcptool_read or mcptool_load_all).

...

Additional arguments passed to tool.

state_env

Environment or NULL (default). Environment in which the MCP tools share and store data; see mcptool_state_factory

Value

An ToolDef object ready to be registered with a chat session.