Files
crewAI/crewai_tools/tools/multion_tool
Greyson Lalonde e16606672a Squashed 'packages/tools/' content from commit 78317b9c
git-subtree-dir: packages/tools
git-subtree-split: 78317b9c127f18bd040c1d77e3c0840cdc9a5b38
2025-09-12 21:58:02 -04:00
..

MultiOnTool Documentation

Description

The MultiOnTool, integrated within the crewai_tools package, empowers CrewAI agents with the capability to navigate and interact with the web through natural language instructions. Leveraging the Multion API, this tool facilitates seamless web browsing, making it an essential asset for projects requiring dynamic web data interaction.

Installation

Ensure the crewai[tools] package is installed in your environment to use the MultiOnTool. If it's not already installed, you can add it using the command below:

pip install 'crewai[tools]'

Example

The following example demonstrates how to initialize the tool and execute a search with a given query:

from crewai import Agent, Task, Crew
from crewai_tools import MultiOnTool

# Initialize the tool from a MultiOn Tool
multion_tool = MultiOnTool(api_key= "YOUR_MULTION_API_KEY", local=False)

Browser = Agent(
    role="Browser Agent",
    goal="control web browsers using natural language ",
    backstory="An expert browsing agent.",
    tools=[multion_remote_tool],
    verbose=True,
)

# example task to search and summarize news
browse = Task(
    description="Summarize the top 3 trending AI News headlines",
    expected_output="A summary of the top 3 trending AI News headlines",
    agent=Browser,
)

crew = Crew(agents=[Browser], tasks=[browse])

crew.kickoff()

Arguments

  • api_key: Specifies MultiOn API key. Default is the MULTION_API_KEY environment variable.
  • local: Use the local flag set as "true" to run the agent locally on your browser. Make sure the multion browser extension is installed and API Enabled is checked.
  • max_steps: Optional. Set the max_steps the multion agent can take for a command

Steps to Get Started

To effectively use the MultiOnTool, follow these steps:

  1. Install CrewAI: Confirm that the crewai[tools] package is installed in your Python environment.
  2. Install and use MultiOn: Follow MultiOn documentation for installing the MultiOn Browser Extension (https://docs.multion.ai/learn/browser-extension).
  3. Enable API Usage: Click on the MultiOn extension in the extensions folder of your browser (not the hovering MultiOn icon on the web page) to open the extension configurations. Click the API Enabled toggle to enable the API