Upload a script file
upload_script_fileGet a script file (.txt or .pdf) into Onepin for a workflow to read.
Call it with no method first: nothing is uploaded and it returns the two ways to do this for the USER to choose between. Then call again with the one they picked.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_script_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | Which way the file gets in. Omit it to be given both options to put to the user. | |
| content | No | The .txt script's exact text. method=inline only, when an upload was refused. | |
| filename | No | The file's own name with its extension, e.g. `script.pdf`. Not needed for browser. | |
| workflow_id | No | The workflow the file is for, from list_workflows. Required for method=browser. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | ||
| options | No | ||
| filename | No | ||
| next_step | No | ||
| upload_id | No | ||
| size_bytes | No | ||
| upload_url | No | ||
| console_url | No | ||
| workflow_id | No | ||
| content_type | No | ||
| requires_choice | No | ||
| expires_in_seconds | No | ||
| upload_url_fallback | No |