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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"diff_text": "<diff_text>",
"metadata": "<metadata>",
"before_failures": "<before_failures>",
"after_failures": "<after_failures>",
"logs": "<logs>",
"secrets": "<secrets>"
},
"name": "bundle_artifacts"
}
}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 | |||