-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathtool-output-limits.yaml
More file actions
60 lines (54 loc) · 1.78 KB
/
Copy pathtool-output-limits.yaml
File metadata and controls
60 lines (54 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# MCP Tool Output Limits
#
# This example demonstrates configuring tool output limits to prevent large tool
# results from consuming the entire context window or causing API errors.
#
# Conductor supports per-result truncation and spill-to-file behavior for MCP tool
# outputs. The `runtime.tool_output` block below sets these global limits.
#
# Usage:
# conductor run examples/tool-output-limits.yaml --input query="Python async tutorial"
#
# To validate this workflow without running it:
# conductor validate examples/tool-output-limits.yaml
workflow:
name: tool-output-limits
description: Example workflow demonstrating MCP tool output limits configuration
version: "1.0.0"
entry_point: researcher
runtime:
provider: copilot
tool_output:
# Enable or disable tool output limiting
enabled: true
# Retain up to 20000 characters from each tool result (minimum: 1000)
max_chars: 20000
# When true, write the full raw tool result to a temporary file
spill_to_file: true
# Custom spill directory. When null, resolves to OS temp directory.
spill_dir: null
mcp_servers:
web-search:
command: sh
args: ["-c", "MODE=stdio DEFAULT_SEARCH_ENGINE=bing exec npx -y open-websearch@latest"]
tools: ["search"]
input:
query:
type: string
required: true
description: The search query to run
agents:
- name: researcher
description: Gathers search results and synthesizes them
model: gpt-5.2
prompt: |
Search the web for the query and summarize the findings:
Query: {{ workflow.input.query }}
output:
summary:
type: string
description: Synthesized summary of the search results
routes:
- to: $end
output:
summary: "{{ researcher.output.summary }}"