hf_upload
Upload a local file or folder to a Hugging Face Hub repo, creating the repository if missing and defaulting to private.
Instructions
Upload a local file or folder to a Hub repo (created if missing, private by default).
repo_id: "/". repo_type: "model", "dataset" or "space".
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": {
"local_path": "<local_path>",
"repo_id": "<repo_id>"
},
"name": "hf_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| private | No | ||
| repo_id | Yes | ||
| repo_type | No | model | |
| local_path | Yes | ||
| path_in_repo | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |