invoke command is the primary way to make authenticated API calls through aivault. The broker validates the request, injects auth, and returns the response — the caller never sees the secret.
invoke
Execute a proxied request and print the raw upstream response.aivault capability invoke.
Examples
--timeout-ms for long-running upstream calls, including streamed responses. The value is in milliseconds and applies to the upstream request duration.
json
Invoke and print the response as parsed JSON.aivault capability json.
markdown
Invoke and print the response converted to markdown. Useful for LLM-friendly output.md
Invoke options
Response handling
- Raw mode (
invoke): prints the response body as-is - JSON mode (
json): parses and pretty-prints as JSON - Markdown mode (
markdown): converts JSON response to markdown with optional namespace wrapping, field exclusion, and field wrapping