Finish a script upload
finish_script_uploadRegister a file whose bytes you already PUT to an upload_url.
Returns its character and line counts and detected language — never its text. Pass the upload_id to a source_script node as input_type="file", upload_ids=[upload_id].
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": {
"upload_id": "<upload_id>"
},
"name": "finish_script_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload_id from upload_script_file, whose bytes you have already PUT. | |
| workflow_id | No | Attach the file to this workflow. Omit to keep it in the workspace for any workflow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| filename | No | ||
| next_step | No | ||
| upload_id | No | ||
| characters | No | ||
| size_bytes | No | ||
| attached_to | No | ||
| detected_language | No |