Import an uploaded file into an allowlisted project
import_file_to_projectCopies an uploaded file from a mounted source into a project, avoiding Base64 conversion. Requires project, source file, and destination path.
Instructions
Copies a real uploaded file into a project without Base64 conversion. The source must come from an approved mounted-file root, and the destination is restricted to the selected project root.
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": {
"project": "<project>",
"source_file": "<source_file>",
"destination": "<destination>"
},
"name": "import_file_to_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project key from list_projects. | |
| overwrite | No | ||
| destination | Yes | Project-relative destination path. Absolute paths and parent traversal are rejected. | |
| source_file | Yes | Mounted upload path supplied by ChatGPT as a file input. | |
| createParents | No | ||
| expectedSha256 | No |