Environment
- Simulink Agentic Toolkit 2026.06 line (observed on the 06.12 autolayout path)
- MATLAB MCP Server (post-0.10 rename:
matlab-mcp-server), MATLAB R2024b, macOS
Repro
- A Stateflow chart containing a subchart.
- Call the MCP tool
model_edit with scope=<the subchart id> and layout_mode='full'.
- Observe the console:
[Autolayout] sf_lint_error: Too many input arguments.
Observed
The error text is emitted, but the tool returns status: ok, the layout IS applied, the chart structure is intact, and lastwarn is empty afterwards.
Expected
Either no lint error (fix the internal sf_lint call arity for subchart scope), or the error surfaced in the tool result — a printed-but-swallowed error is indistinguishable from a real failure for agent callers that grep the console.
Notes
- Root/chart scopes do NOT trigger it; only subchart scope on the full-autolayout path.
- Impact today is cosmetic/noise (the result is correct), but it trains agent callers to ignore
sf_lint_error lines.
Environment
matlab-mcp-server), MATLAB R2024b, macOSRepro
model_editwithscope=<the subchart id>andlayout_mode='full'.[Autolayout] sf_lint_error: Too many input arguments.Observed
The error text is emitted, but the tool returns
status: ok, the layout IS applied, the chart structure is intact, andlastwarnis empty afterwards.Expected
Either no lint error (fix the internal
sf_lintcall arity for subchart scope), or the error surfaced in the tool result — a printed-but-swallowed error is indistinguishable from a real failure for agent callers that grep the console.Notes
sf_lint_errorlines.