upload_file
Upload file content to SAS Viya Files Service with a specified file name and MIME type. Enables storing or updating file resources.
Instructions
Upload a file to the Viya Files Service.
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": {
"file_name": "<file_name>",
"content": "<content>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | File content as a string. | |
| file_name | Yes | Name for the file. | |
| content_type | No | MIME type (default 'text/plain'). | text/plain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||