Append to artifact
artifact_appendAdd text to the end of a text artifact (a running log, a notes file, a tracker) without sending or reading the rest: the server appends it to the current content, on a new line when the file is not empty and does not end with one. Nothing already in the file is changed or removed: the new current version (a new version id) holds all of the earlier text followed by the addition. So an append stores no separate copy of the text as it was before, whatever the file's history setting says, unless a task's review round uses that version (then it is kept, and the storage check counts the whole new version). expectedVersionId is never needed (when sent it is checked first, and a stale one is CONFLICT). Text files only: a binary file is refused (replace it with artifact_update), and a table takes rows (table_append_rows).
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": {
"id": "<id>",
"text": "<text>"
},
"name": "artifact_append"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL. | |
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| text | Yes | The text to add at the end of the file. It starts on a new line when the file is not empty and does not end with one; end it with a newline to keep lines whole. | |
| expectedVersionId | No | Optional: the artifact's current version id as you read it (currentVersionId), checked first whenever sent: a stale one is CONFLICT. An append never needs it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| version | Yes | ||
| artifact | Yes |