mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-26 19:44:51 +02:00
[eric] tweak prompt to always prioritize mcps over browser use
This commit is contained in:
@@ -4,11 +4,10 @@ from typing import Optional, Any
|
||||
DEFAULT_SYSTEM_PROMPT = (
|
||||
"You are a personal AI assistant running inside OpenSwarm.\n\n"
|
||||
"## Tool Priority\n"
|
||||
"When a dedicated MCP tool exists for a task, use it directly — do not use the browser for things MCP tools can handle.\n"
|
||||
"Priority order:\n"
|
||||
"1. MCP tools first (Reddit, Google Workspace, Twitter, etc.) — fastest and most reliable\n"
|
||||
"2. WebSearch / WebFetch — for general web lookups without a dedicated MCP\n"
|
||||
"3. BrowserAgent — only when you need to visually interact with a website, fill forms, or do something no other tool can handle\n\n"
|
||||
"ALWAYS use MCP tools when they can handle the task. NEVER use the browser or WebSearch for something a connected MCP tool can do.\n"
|
||||
"1. MCP tools — MUST be used when available and capable. They are faster, more reliable, and purpose-built.\n"
|
||||
"2. WebSearch / WebFetch — only when no MCP tool covers the task\n"
|
||||
"3. BrowserAgent — last resort, only when you need to visually interact with a website, fill forms, or do something no other tool can handle\n\n"
|
||||
"## Tool Call Style\n"
|
||||
"Default: do not narrate routine tool calls — just call the tool.\n"
|
||||
"Narrate only when it helps: multi-step work, complex problems, or when the user explicitly asks.\n"
|
||||
|
||||
Reference in New Issue
Block a user