edit_artifact_group_item
Replace an existing file's content in an artifact group, including index.html. Requires the file to already exist; otherwise add it first.
Instructions
Replace the content of an existing file in an artifact group.
Fails if no file exists at that path yet — use add_artifact_group_item to create one. This is also how you update index.html itself.
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": {
"ref": "<ref>",
"path": "<path>",
"content": "<content>"
},
"name": "edit_artifact_group_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The group's slug or full URL. | |
| path | Yes | The existing file's path to overwrite. | |
| content | Yes | The new full content for that file (replaces the old content entirely; max 256 KB). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||