project_import
Imports a directory or exported ZIP into a task's project path, preserving relative paths, binary files, and helpers while reusing identical files and reporting conflicts instead of overwriting.
Instructions
Import a directory or exported ZIP into the task's project_path, retaining relative paths, binary files and helpers.
Existing identical files are reused; differing files cause a conflict, never overwrite. ZIP hashes and original records are checked. Returns operation_id immediately. Release any task_claim before waiting on operation_get; read task_get for the new revision after completion.
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": {
"task_id": "<task_id>",
"revision": "<revision>",
"source": "<source>",
"op_id": "<op_id>"
},
"name": "project_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op_id | Yes | ||
| token | No | ||
| source | Yes | ||
| task_id | Yes | ||
| revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |