upload_file
Upload a local file to a Stashcat channel, conversation, or personal storage. Specify target type and file path, optional custom filename or folder.
Instructions
Uploads a file to a channel, conversation, or personal files.
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_path": "<file_path>",
"type": "<type>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Target storage type | |
| type_id | No | Channel or conversation ID (not required for personal) | |
| filename | No | Custom filename (defaults to the file path basename) | |
| file_path | Yes | Absolute path to the file on disk | |
| folder_id | No | Optional folder ID to upload into |