Get the next unit to port
port_unitFetch the complete next unit to port—source text, mapped API hints, conventions, dependency symbols, target rules and a checklist—and mark it in progress.
Instructions
Returns one unit with everything needed to port it: source text, symbols, the engine APIs it uses with their mapped equivalents and line numbers (apiHints), conventions, target path and naming rules, dependencies with the symbols of their already-ported targets, and a checklist. Marks it in_progress.
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>"
},
"name": "port_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Repeat the conventions and checklist even after the first finished unit (they are shortened after that). | |
| unit | No | Unit id (u001…), or its source/target path. Omit for the next unit in dependency order. | |
| planId | Yes | Port plan id from port_plan (port_status lists them). |