Restore earlier custom asset version
rollback_custom_assetRollback Asset
When to use: 사용자가 에셋을 이전 배포 버전으로 복원해 달라고 명시적으로 요청할 때 — 확인받은 뒤에만 실행한다.
When NOT to use: 사용자가 명시적으로 만들기·수정·배포를 요청하지 않았으면 호출하지 않는다 — 분석 질문에 답하려고 에셋·파이프라인·소스·스텝을 만들거나 고치지 않는다. 갱신만 멈추려면 unpublish_custom_asset 을 쓴다.
Limitations: 고른 버전으로 실행 버전을 바꾸고, 하위 파이프라인의 초안(소스·스텝)도 그 버전으로 덮어쓴다 — 아직 배포하지 않은 초안 수정은 사라진다. 복원할 버전 id 는 list_custom_asset_versions 로 고른다. 먼저 get_custom_asset 으로 읽어 그 updated_at 을 expected_updated_at, draft_revision 을 expected_revision 으로 넘긴다. 409 응답의 current_revision 을 그대로 다시 보내 덮어쓰지 말고, 다시 읽어 바뀐 내용을 사용자에게 확인받은 뒤 다시 시도한다. 그 버전에 없는 매칭에 규칙·수동 매칭이 딸려 있으면 함께 지워지게 되므로 409 다. 이 tool 에는 강제 진행 옵션이 없다 — 409 로 막히면 이유를 사용자에게 설명하고 웹의 온톨로지 편집 화면에서 처리하도록 안내한다. 최대 30분 주기의 스냅샷 업로드 뒤 마트 빌드가 끝나야 대시보드 수치가 바뀐다. 커스텀 에셋·파이프라인은 같은 소유자의 모든 프로젝트가 공유하며, 발행하면 그 프로젝트들 대시보드에도 반영된다.
Examples:
Q: 주문 보강 에셋을 지난 배포 버전으로 복원해줘 params: {'path': {'asset_id': 12, 'version_id': 7}, 'query': {'expected_updated_at': '2026-10-13T10:00:00', 'expected_revision': '…'}}
Output shape: object: {status, asset_id, version_id}
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": {
"asset_id": "<asset_id>",
"version_id": "<version_id>",
"expected_updated_at": "<expected_updated_at>",
"expected_revision": "<expected_revision>"
},
"name": "rollback_custom_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | ||
| project-id | No | ||
| version_id | Yes | ||
| expected_revision | Yes | Concurrency token for operations that act on a whole draft — the `draft_revision` (or column-meta `revision`) this client last read. When the draft changed since, the request is rejected with 409 and the live token. Omit to keep the legacy last-write-wins behaviour. | |
| expected_updated_at | Yes | Concurrency token — the `updated_at` this client last read for the entity. When it no longer matches the stored value the request is rejected with 409 instead of silently overwriting another session's edit. Omit to keep the legacy last-write-wins behaviour. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||