bundle_artifacts
Creates a redacted zip of PR diff, metadata, failure details, and logs, returning base64 for direct client retrieval via MCP.
Instructions
Bundle artifacts into a redacted zip and return it as base64.
The caller must provide the diff text, metadata dictionary, before and
after failure structures, and any logs to include. A list of secrets
should be supplied to aid in redaction.
S3: Returns the zip archive as base64-encoded bytes so the client can
retrieve it directly via the MCP protocol without needing filesystem
access to the server.
Returns:
A dictionary containing:
- artifact_path: Local filesystem path to the zip (for debugging)
- zip_filename: The filename of the zip archive
- zip_base64: Base64-encoded contents of the zip file
- size_bytes: Size of the zip file in bytes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| secrets | Yes | ||
| metadata | Yes | ||
| diff_text | Yes | ||
| after_failures | Yes | ||
| before_failures | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||