You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operator/composite-tools-quick-reference.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,18 @@ Workflows use Go's [text/template](https://pkg.go.dev/text/template) syntax with
80
80
81
81
### Functions
82
82
83
+
Composite Tools supports all the built-in functions from the [text/template](https://pkg.go.dev/text/template#hdr-Functions) library in addition to some functions for converting to/from JSON.
84
+
83
85
```yaml
84
-
# JSON encoding
86
+
# JSON encoding - convert value to JSON string
85
87
arguments:
86
88
data: "{{json .steps.step1.output}}"
87
89
90
+
# JSON decoding - parse JSON string to access fields
91
+
# Useful when MCP servers return JSON as text content
> **Important**: Structured content must be an object (map). If a tool returns an array, primitive, or other non-object type, it falls back to unstructured content handling.
0 commit comments