run_video_function
Run a read-only Google Veo or xAI Grok video helper function before generation. Does not generate video or spend credits.
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": {
"identifier": "<identifier>",
"functionName": "<functionName>"
},
"name": "run_video_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Function parameters. estimate_cost accepts model, duration_seconds, resolution, output, and xAI input_image_count. validate_request accepts a generate_video-style payload. | |
| identifier | Yes | Video generator identifier from get_video_options. | |
| functionName | Yes | Helper function name from get_video_options.tools. |