Get changes since last restore point
get_pending_changesGet Pending Diff
When to use: 마지막 체크포인트 이후 아직 스냅샷에 없는 변경(pending)이 라이브 원본과 비교해 정확히 무엇인지 볼 때. pending 배너의 '변경 보기'에 대응한다.
Limitations: entity_type/entity_id 는 등록된 조합만 허용(미등록 시 400, fail-closed): item_relation+'-'(상품 매핑), item_relation+AI(AI 추천 매핑), data_mapping+ITEM(상품 매핑 규칙), data_mapping+AD(광고 매칭 규칙), url_mapping+'-'(URL 매핑), ad_relation+'-'(광고 매칭), cogs+'-'(기초상품 원가), fee_history+'-'(판매 수수료 이력). entity_id 기본값은 '-'. limit 1~1000(기본 100). 이건 복원 지점이 아니다 — 라이브 상태 기준 '지금 이 순간' 스냅샷이라 재현되지 않는다. 되돌리려면 먼저 create_restore_point 로 물질화해야 한다.
Examples:
Q: 상품 매칭에서 마지막 복원 지점 이후 바뀐 내용 보여줘 params: {'query': {'entity_type': 'item_relation', 'entity_id': '-'}}
Output shape: PendingDiffRes: VersionDiffRes 와 같은 columns/rows/summary 모양 + pending_change_count + absent_from_source/absent_from_archive
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": {
"entity_type": "<entity_type>"
},
"name": "get_pending_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| entity_id | No | 세부 범위 (ITEM/AD/'-') | - |
| project-id | No | ||
| entity_type | Yes | 스코프 — 대상 엔티티 타입 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||