List an object's fields
list_fieldsLists the fields of one selected object as the web Fields step shows them: each field's name, type, a sample value, whether it moves, and where it goes in the destination (null = not moved, "new" = a field of its own, else the id of an existing destination field). Call it when the user asks what will move or wants to change it; both systems must be connected. Up to 100 fields per call (200 with limit); page with offset and nextOffset. A field the automatic mapping could not place carries unmapped: true with unmappedReason; the full run waits until the user has reviewed such fields. Where canChooseDestination is false the destination is fixed: its entry in destinationFields has fixed: true and only whether the field moves can change. Returns { object, destinationObject, total, moving, fields: [{ field, label, type, sample, moves, destination, canChooseDestination, canRename, unmapped? }], destinationFields: [{ id, name, type, fixed? }], matchKey, next }.
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>",
"object": "<object>"
},
"name": "list_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The migration id start_migration returned, like MIG-8F3C1D92. | |
| limit | No | Fields per page. Default 100. | |
| object | Yes | An object id from list_objects, like "contacts". | |
| offset | No | Skip this many fields (use nextOffset from the last answer). |