Upload local file
upload_filestdio MCP only: read a local path, SHA-256 the bytes, upload to NexDoc (or reuse an existing file for this user when content matches), and return a ready file_id. Use this instead of asset_files for large photos. Then pass file_ids to create_design or update_design. Remote/OAuth MCP cannot read the client's disk — use request_file_upload (with optional content_sha256) and PUT instead.
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": {
"path": "<path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file on this machine |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | ||
| status | Yes | ||
| file_id | Yes | ||
| filename | No | ||
| next_step | No | ||
| created_at | No | ||
| size_bytes | No | ||
| content_type | No |