import_tmx
Imports a TMX file into a translation memory, returning an async import job ID. Poll check_import_status until the import completes.
Instructions
Imports a TMX file into a translation memory. This is an async operation that returns an import job object containing an import_id. Poll with check_import_status using the returned import_id until the import is complete.
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": {
"id": "<id>",
"tmx_content": "<tmx_content>"
},
"name": "import_tmx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the memory to update. Format: mem_xyz123. | |
| tmx_content | Yes | The content of the tmx file to upload. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import job identifier | |
| end | No | End offset of the import | |
| size | No | Total number of units in the import | |
| begin | No | Begin offset of the import | |
| channel | No | Channel identifier used by the import | |
| progress | No | Import progress between 0 and 1 (1 means complete) |