fix(core): Bound oversized agent tool results (#35759)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Robin Braumann
2026-08-07 07:18:55 +00:00
committed by GitHub
co-authored by Cursor
parent 32f38a3541
commit 8fbcd7efe9
5 changed files with 325 additions and 7 deletions
@@ -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.