teamleader_files_upload
Obtain an upload URL for a file to be linked to a Teamleader record. Specify the subject type, subject ID, and file name; then upload the file bytes to the returned URL.
Instructions
Step 1 of a two-step file upload flow — returns an upload URL/location; the actual bytes are then PUT to that URL out of band. Provide the subject to link the file to and the intended file name.
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": {
"subject_type": "<subject_type>",
"subject_id": "<subject_id>",
"file_name": "<file_name>"
},
"name": "teamleader_files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Name of the file to upload | |
| subject_id | Yes | ID of the linked subject | |
| subject_type | Yes | Type of the linked subject, e.g. 'contact', 'company', 'deal' |