Write a ported unit
port_writeWrites ported files for a unit into the output project and records progress; reports leftovers, TODO markers, missing functions/signals, and the next unit. Copy assets or mark partial/skipped.
Instructions
Writes the ported file(s) for a unit into the output project (never outside it) and records progress. Returns leftovers (source-engine APIs still present), PORT/TODO markers, source functions/signals missing in the port, and the next unit. copy:true copies an asset unchanged. Give exactly one of content, files or copy. status partial/skipped with notes when something cannot be ported yet.
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": {
"planId": "<planId>",
"unit": "<unit>"
},
"name": "port_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Copy the source file unchanged (assets). | |
| unit | Yes | Unit id or path. | |
| files | No | Several files (e.g. Unreal .h and .cpp). | |
| notes | No | What is left or why it was skipped. | |
| planId | Yes | Port plan id from port_plan (port_status lists them). | |
| status | No | done (default), partial or skipped. | |
| content | No | File content for the unit target. |