Show what a draft changed
get_draft_changesShows what a draft changed against the Version it started from. It answers the paths the draft added, changed and deleted, and its revision. It is how to pick up a draft in a new conversation.
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": {
"function_name": "<function_name>",
"draft_id": "<draft_id>"
},
"name": "get_draft_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_slug | No | The App's slug. Omitted, the Tenant's default App. | |
| draft_id | Yes | The draft, as 'open_draft' or 'list_drafts' names it. | |
| function_name | Yes | The Function's slug. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | No | ||
| draft | Yes | ||
| changed | No | ||
| deleted | No | ||
| warning | Yes | What the next CLI deploy does to this draft's change. Null where the live Version did not come from the CLI. | |
| app_slug | Yes | ||
| function_name | Yes | ||
| live_from_cli | Yes | True where the live Version was deployed with the CLI, which is most likely from a repository. | |
| live_version_number | Yes | The Version that is live. Null where none is. |