Archive Items
item.archiveArchive (archived: true) or unarchive (archived: false) up to 50 rows of a sheet. An archived row keeps all its data but leaves default reads and search, sends no reminders and fires no workflows; unarchiving brings it back. Read archived rows with sheet.read and archived: "only". Confirm with the user before calling it. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returns status: "pending_approval"; nothing changes until they approve. Pass reason (and targetNotes per target) so the approver sees why.
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": {
"sheetId": "<sheetId>",
"itemIds": "<itemIds>",
"archived": "<archived>"
},
"name": "item.archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why you are doing this, in one sentence the approver reads if Ask first holds the call | |
| itemIds | Yes | Ids of the rows to archive or unarchive (1–50) | |
| sheetId | Yes | ||
| archived | Yes | true archives the rows; false unarchives them | |
| targetNotes | No | A short note per target, keyed by the id or Index you pass |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | The call waits for a person's approval; nothing has changed | |
| changed | No | Ids now in the requested state, including ones that already were | |
| message | No | ||
| approver | No | Who decides it | |
| notFound | No | Ids that are not rows of this sheet | |
| approvalId | No | The approval the call waits on |