View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/mcp_use/agents/remote.py
RemoteAgent
method
init
Initialize remote agent.ParametersSignatureThe ID of the remote agent to executeThe ID of the chat session to use. If None, a new chat session will be created.API key for authentication. If None, will check MCP_USE_API_KEY env varBase URL for the remote API
method
run
Run a query on the remote agent.ParametersReturnsThe query to executeMaximum number of steps (default: 10)External history (not supported yet for remote execution)Optional Pydantic model for structured output
SignatureThe result from the remote agent execution (string or structured output)