bc_wizard_navigate
Advances, reverses, finishes, or cancels Business Central NavigatePage wizards step by step, enabling automated multi-step setup forms after opening the modal page.
Instructions
Drive a Business Central NavigatePage / wizard by semantic step. Use after bc_open_page on a page whose response has isModal: true and pageType: "NavigatePage" (Continia activation wizards, BC setup wizards, request pages with multi-step layouts). The action argument is one of: "next" (advance), "back" (return to previous step), "finish" (complete the wizard), "cancel" (abort).
bc-mcp identifies the navigation buttons by the icon resource BC's own client uses (Actions/PreviousRecord, Actions/NextRecord, Actions/Approve), not by SystemAction or caption -- so localised wizards work without changes. The response surfaces fields visible on the new step, the remaining navigation options (availableNav), and a closed flag set when the wizard finished.
Typical workflow: bc_open_page (returns isModal=true, fields for step 0) -> bc_write_data (fill step 0 inputs) -> bc_wizard_navigate { action: "next" } -> bc_write_data (fill step 1) -> ... -> bc_wizard_navigate { action: "finish" }. The wizard closes itself on finish/cancel; the pageContextId becomes invalid afterwards. A step that opens a separate dialog (e.g. "Set up SMTP Account") returns it in dialogsOpened with its own pageContextId: fill it with bc_write_data against that id and answer it with bc_respond_dialog, not through the wizard's pageContextId.
Do NOT use this for non-wizard pages -- use bc_execute_action instead. Do NOT call "next" past the last step -- use "finish" once availableNav lists it.
Example: { "pageContextId": "abc", "action": "next" }
If the action produces a file (Open in Excel, Print, export), its bytes appear in downloads[] (an operationId replay returns the metadata with error code NOT_REPLAYED instead of the bytes); links BC would open externally appear in externalUris[] and are never fetched by the server.
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": {
"pageContextId": "<pageContextId>",
"action": "<action>"
},
"name": "bc_wizard_navigate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Wizard step navigation. "next" advances, "back" returns to previous step, "finish" completes the wizard, "cancel" aborts. | |
| operationId | No | Optional idempotency key (e.g. a UUID you generate): a retry with the same key and arguments returns the stored result instead of re-running. See the server instructions. | |
| pageContextId | Yes | Page context ID returned by bc_open_page for a NavigatePage / wizard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| closed | Yes | ||
| fields | Yes | ||
| caption | Yes | ||
| success | Yes | ||
| downloads | Yes | ||
| replaySafe | Yes | ||
| availableNav | Yes | ||
| externalUris | Yes | ||
| dialogsOpened | Yes | ||
| changedSections | Yes |