tc_import
Import a task package from another workspace or machine to continue work in a new directory, validating paths and rolling back failed imports.
Instructions
Import a package produced by tc_export and continue the task in another directory or on another machine. Use it on the receiving side of a handoff; to resume in the same workspace, tc_resume is enough and needs no package. It validates the task id and the workspace path, and refuses duplicate tasks, .. traversal and symlink targets; if anything fails it rolls back the files it already wrote.
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": {
"root": "<root>",
"package": "<package>"
},
"name": "tc_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Workspace root | |
| package | Yes | Package directory, i.e. the path returned by tc_export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id after import |