Preview action
preview_actionPreview Action
When to use: 실행 전에 입력을 검증하고 영향(예: 수신자 수)을 미리 볼 때. 아무것도 쓰지 않는다.
Limitations: 입력이 틀리면 422 errors[].loc 에 고칠 위치가 있다. 등급 B 는 confirmation_token(10분)을 준다 — preview 를 사용자에게 보여 주고 확인받은 뒤에만 execute_action 에 넘긴다. 등급 C 는 preview.proposal 을 create_action_proposal 로 보낸다.
Examples:
Q: 캠페인 42 확정하면 몇 명이야? params: {'path': {'action_type': 'crm_campaign_confirm'}, 'body': {'input': {'campaign_id': 42}}}
Output shape: single PreviewResponse
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": {
"action_type": "<action_type>"
},
"name": "preview_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | ||
| project-id | No | ||
| action_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||