Get Python metric preview
get_python_metric_previewPolls the state and result of an asynchronous Python metric preview until it reaches a terminal state, so you can publish only with a successful preview ID for the exact draft.
Instructions
Get the state and result of an asynchronous Python metric preview. Poll this tool until the preview reaches a terminal state; publish only with successful preview IDs for the exact draft.
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": {
"draft_id": "<draft_id>",
"preview_id": "<preview_id>"
},
"name": "get_python_metric_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | The immutable Python metric draft ID. | |
| preview_id | Yes | The asynchronous preview ID. |