Skip to main content
In Icepick, a toolbox is a collection of tools that enables AI-powered tool selection. Instead of manually calling specific tools, agents can describe what they want to accomplish, and the toolbox will intelligently select and execute the most appropriate tools.

Creating a Toolbox

Create a toolbox by passing an array of tools to the icepick.toolbox method:
The toolbox automatically makes all included tools available for AI selection during agent execution.

Using a Toolbox

Tool Selection and Execution

Use pickAndRun to let the AI select and execute the most appropriate tool based on a natural language prompt:

Tool Selection Only

Use pick to select tools without executing them, useful when you need to inspect the selection before execution:

Multiple Tool Selection

Select and execute multiple tools by specifying maxTools:

Using Toolboxes in Agents

Toolboxes operate within agent contexts for tool selection based on agent requirements:
This approach allows agents to use different tools based on the requirements of each request.