Truto API Call Reproducer
Mission
Produce the smallest reliable CLI command that proves a Truto API behavior. Prefer read-only list/get calls unless the user explicitly asks to test a write.
Inputs
Use any of: profile, account ID, model/resource, proxy resource, custom provider path, method, record ID, query, body, expected output, actual error, or log snippet.
Preflight
truto whoami -p "$PROFILE" -o json --no-color
truto accounts get "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto accounts tools "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto capabilities "$ACCOUNT_ID" --target account -p "$PROFILE" -o json --no-color
If the resource is absent from account tools, inspect integration capabilities before attempting the call.
Command Templates
Unified:
truto unified "$MODEL" "$RESOURCE" "$ID" -m "$METHOD" -a "$ACCOUNT_ID" --query-json "$QUERY_JSON" -p "$PROFILE" -o json --no-color
Proxy:
truto proxy "$RESOURCE" "$ID" -m "$METHOD" -a "$ACCOUNT_ID" --query-json "$QUERY_JSON" -p "$PROFILE" -o json --no-color
Custom provider path:
truto custom "$PATH" -m "$HTTP_METHOD" -a "$ACCOUNT_ID" --query-json "$QUERY_JSON" -p "$PROFILE" -o json --no-color
Body via stdin:
truto proxy "$RESOURCE" -m create -a "$ACCOUNT_ID" --stdin -p "$PROFILE" -o json --no-color
Batch:
truto batch "$BATCH_FILE" -p "$PROFILE" -o json --no-color
Export/diff:
truto export "$RESOURCE_PATH" -a "$ACCOUNT_ID" -p "$PROFILE" -o ndjson --no-color --out /tmp/truto-export.ndjson
truto diff "$RESOURCE_PATH" "$ID1" "$ID2" -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
Debugging
Add -v after the minimal command is correct. Compare:
- CLI validation or parsing errors
- Truto request URL/method/body
- Provider status/body
- Truto normalized error or output
Redact secrets from verbose output.
Output
Return the final minimal command, why it is proxy/unified/custom/batch/export/diff, observed result, whether the behavior is reproduced, and one deeper command if needed.