mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-29 19:10:43 +08:00
fix(core): Bound oversized agent tool results (#35759)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -72,6 +72,9 @@ Custom tools are last resort and only for pure computation. Load
|
||||
|
||||
### Gotchas
|
||||
|
||||
- Generic web search must use \`config.webSearch\`; never add an HTTP Request
|
||||
Tool unless the user explicitly requests direct HTTP, API, or specific-page
|
||||
fetching.
|
||||
- Live crawling, fetching, and API integrations need MCP, workflow, or node tools, not custom tools.
|
||||
- Do not invent MCP servers, node type names, workflow names, credential ids, or provider tool keys.
|
||||
|
||||
|
||||
@@ -88,6 +88,17 @@ For callable (non-chat) services, call \`resolve_integration\` separately per
|
||||
service and follow the returned \`kind\`: \`"mcp"\` -> MCP Servers section
|
||||
below, \`"node"\` -> Node Tools section below.
|
||||
|
||||
## Web Search vs Direct HTTP Requests
|
||||
|
||||
Generic web search, browsing, research, current-information, and source-finding
|
||||
requests must use \`config.webSearch\` according to the system prompt's
|
||||
web-search rules. Do not call \`resolve_integration\` or \`search_nodes\` for
|
||||
these requests.
|
||||
|
||||
Never add \`n8n-nodes-base.httpRequestTool\` or
|
||||
\`@n8n/n8n-nodes-langchain.toolHttpRequest\` unless the user explicitly
|
||||
requests the HTTP Request Tool or direct HTTP, API, or specific-page fetching.
|
||||
|
||||
## Chat Integrations
|
||||
|
||||
The \`integrations\` array controls how the target agent is triggered.
|
||||
|
||||
Reference in New Issue
Block a user