add_artifact_group_item
Add a new file to an existing artifact group by specifying the group slug, file path, and content. Returns an error if the file path already exists, so you can avoid accidental overwrites.
Instructions
Add a new file to an existing artifact group.
Fails if a file already exists at that path — use edit_artifact_group_item to change one, or read_artifact_group first if you're not sure what's already there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The group's slug or full URL. | |
| path | Yes | The new file's path (e.g. "styles/theme.css"). Same rules as create_artifact_group: relative, no '..', [A-Za-z0-9._/-] only, one of .html/.css/.js/.jsx, at most 256 KB. | |
| content | Yes | The file's full content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||