Expand description
Agent-First Data (AFD) output formatting and protocol templates.
Implements the AFD output convention. JSON is the canonical lossless format. YAML preserves structure with quoted strings. Plain applies suffix-driven formatting for human readability.
--output json|yaml|plainEnums§
- Output
Format - Output format for CLI and API responses.
Functions§
- error
- Build
{code: "error", error: "message"}. - error_
trace - Build
{code: "error", error: "message", trace: ...}. - ok
- Build
{code: "ok", result: ...}. - ok_
trace - Build
{code: "ok", result: ..., trace: ...}. - parse_
size - Parse a human-readable size string into bytes.
- redact_
secrets - Walk a JSON Value tree and redact any field ending in
_secret. - startup
- Build
{code: "startup", config: ..., args: ..., env: ...}. - status
- Build
{code: "<custom>", ...fields}— tool-defined status line. - to_
plain - Convert a JSON Value into human-readable plain text.
- to_yaml
- Convert a JSON Value into a YAML document.