save-artifact
Save Claude-generated files such as HTML, XLSX, PPTX, or Markdown into a product's assets directory, using UTF-8 for text or base64 for binary content.
Instructions
Save any arbitrary file (e.g. .html, .xlsx, .pptx, .md) generated by Claude into the product's assets directory. Supports both text and base64 encoded binary files.
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": {
"productSlug": "<productSlug>",
"filename": "<filename>",
"fileContent": "<fileContent>"
},
"name": "save-artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | The encoding of the fileContent. Use 'base64' for binary files like .xlsx or .pptx. | utf-8 |
| filename | Yes | The name of the file to save, e.g. '2026-05-26-user-stories-viewer.html' or 'financial-model.xlsx' | |
| fileContent | Yes | The full string content of the file. If encoding is base64, this must be the base64 string. | |
| productSlug | Yes | The product slug |