Discover and inspect a command
Read the command description and find a payment workflow:agent-context includes schema_version, command names and flags, authentication requirements, and runtime_context. It reports the selected environment and account without opening the local store. which searches the built-in workflow descriptions; use resource help, such as straddle charges --help, for API operations.
Choose an output mode
Choose the following mode for your caller:
Piped or redirected resource output uses JSON unless another supported output format is selected. Piping doesn’t enable the other
--agent defaults. --human-friendly keeps piped resource output in JSON.
Explicit flags override agent defaults. To keep full resource fields, use --agent --compact=false. To request a smaller set of fields:
--select applies to resource fields, not envelope paths such as meta.source. Streaming commands have their own output shape: sync, for example, emits one JSON event per line.
Preview a request before sending it
Before a write, check the effective environment and acting account withagent-context, inspect the operation’s help, and prepare the request body. For a charge body saved as charge.json:
Read fresh results and handle errors
For a fresh API result, bypass both local fallback and the HTTP response cache:--all when the task requires every page. On reads that include provenance, inspect meta.source and meta.synced_at to distinguish API results from local data.
Capture stdout, stderr, and the process exit code separately. A failed command can report diagnostics as text on stderr even with --agent. Follow the error recovery guide before retrying a write.
Call an API path directly
Call an API path directly
Use After reviewing the preview, remove
straddle api to discover the raw interfaces. If you have a verified endpoint path, preview it with the shared credentials and account rules:--dry-run to send the read. Add --no-cache when it must reach the API.