@@ -43,6 +43,7 @@ curl -s -X POST http://gandalf.heron-justitia.ts.net:18792/task \
4343| -------| ----------| -------------|
4444| ` message ` | Yes | What you want Gandalf to do. Be specific. |
4545| ` context ` | No | What you're working on (repo, PR, feature). Helps Gandalf prioritize and contextualize. |
46+ | ` content ` | No | Inline content (HTML, markdown, text) for Gandalf to process. Max 5MB. Use this instead of file uploads. |
4647
4748** Response (202):**
4849``` json
@@ -105,11 +106,27 @@ done
105106
106107### Publish a report to Alfarrábio
107108``` bash
109+ # Build your HTML/markdown content, then send inline via `content` field
110+ CONTENT=$( cat my-report.html)
111+ curl -s -X POST http://gandalf.heron-justitia.ts.net:18792/task \
112+ -H " Content-Type: application/json" \
113+ --data-binary @- << EOF
114+ {
115+ "message": "Publish this as an Alfarrábio report titled 'API Coverage Analysis'. Return the URL.",
116+ "context": "midaz API audit",
117+ "content": $( echo " $CONTENT " | jq -Rs .)
118+ }
119+ EOF
120+ ```
121+
122+ ### Publish markdown (Gandalf converts to HTML)
123+ ``` bash
108124curl -s -X POST http://gandalf.heron-justitia.ts.net:18792/task \
109125 -H " Content-Type: application/json" \
110126 -d ' {
111- "message": "Create an Alfarrábio report with this content:\n\n# API Coverage Analysis\n\n...(your content)...\n\nPublish it and return the URL.",
112- "context": "midaz API audit"
127+ "message": "Convert this markdown to a styled Alfarrábio report and publish it. Return the URL.",
128+ "context": "PR #1900 analysis",
129+ "content": "# Analysis\n\n## Findings\n\n- Point 1\n- Point 2\n\n## Conclusion\n\nAll good."
113130 }'
114131```
115132
@@ -137,9 +154,11 @@ curl -s -X POST http://gandalf.heron-justitia.ts.net:18792/task \
137154
138155- ** Rate limit:** 10 requests/min per Tailscale node
139156- ** Timeout:** 120s per task
157+ - ** Content limit:** 5MB inline (use ` content ` field, not file uploads)
140158- ** One-way initiation:** you send, Gandalf processes. No streaming.
141159- ** Tailscale only:** not accessible from the public internet
142160- ** Identity:** your Tailscale node identity is attached automatically. No spoofing.
161+ - ** No file uploads:** send content inline as JSON string. Safer, simpler.
143162
144163## Health Check
145164
0 commit comments