Repository navigation
Leave NI's default error-cluster help text out of tools/list - #41
Merged
Merged
Conversation
Every tool with an error in or error out from LabVIEW's palette sent
NI's default help text to the client in its inputSchema and
outputSchema, HTML tags included ("<B>error in</B> can accept error
information ... Right-click the <B>error in</B> control ..."), and the
same for status, code and source. On the Datalogger example that was
about three quarters of the tools/list answer, and it told a model
nothing.
tools/list now leaves out a description that equals one of NI's
default error-cluster texts, on the terminal and on every element at
any depth. A description the tool's author wrote, including NI's text
with a sentence added, is sent unchanged. Inputs whose description is
empty, whether emptied this way or empty to begin with, no longer
carry a "description": "" key at all.
- Remove Default Error Description.vi (new): returns an empty string
for the eight default texts of LabVIEW's error in and error out
controls and their status, code and source elements (read from
vi.lib\errclust.llb; identical in LabVIEW 2020 and 2026 after
normalising line endings and surrounding whitespace), and the
description unchanged otherwise. It holds the only copy of the list.
- Remove Empty Description.vi (new): drops a top-level "description"
item whose value is "" from a JSON object and leaves everything else
untouched.
- Get Connector Pane Info.vi and Add Control Details To Schema.vi call
the first for terminal and element descriptions; Add Array Items To
Schema.vi calls the second for each input of tools/list.
Prompt arguments keep their "description": "" for now; prompts/list
was left as it is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test 63 registers fake tool error descriptions.vi, which has an error in and error out with NI's default texts, an error cluster input with the author's own descriptions, and an error indicator whose status carries NI's text plus a sentence. It checks that inputSchema and outputSchema carry no description on the default terminals and their status, code and source, that the author's descriptions and the extended NI text are kept, and that NI's text with CR LF and surrounding whitespace is still recognised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests✅ All 64 tests passed. Per-test results
Protocol tests✅ Protocol tester output (0 failed required checks)VI changesVIs: 4 modified, 5 added, 0 deleted
Added VIs (5)Report for commit d9cee67. The installable test package is under Artifacts of this run once the build job has finished. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.









Summary
Every tool with an error in or error out from LabVIEW's palette sent NI's default help text to the client in tools/list, HTML tags included. That was about three quarters of the Datalogger example's tools/list, and it tells a model nothing. tools/list now leaves out any description that equals NI's default text. A description the tool's author wrote is kept. Inputs with an empty description no longer carry
"description": ""at all.error_outin outputSchema, default text"description": "<B>error in</B> can accept error information … Right-click …", and the same for status, code, sourcedescriptionkey on the terminal or its elementserror ininput, default textdescriptionkeyfake_tool_addx)"description": ""descriptionkeyChanges
Remove Default Error Description.vi(new, Private/SubVIs):vi.lib\errclust.llbof LabVIEW 2020 and 2026. After normalisation they are identical in both versions.Remove Empty Description.vi(new, Private/SubVIs): drops a top-level"description": ""item from a JSON object. Everything else stays, in order, and a text that is not a JSON object comes back unchanged.Get Connector Pane Info.vi(modified in place, hand-drawn): calls Remove Default Error Description on each terminal's description.Add Control Details To Schema.vi(modified in place): calls it on each element description.Add Array Items To Schema.vi(modified in place): calls Remove Empty Description on each input's finished schema. It is the one place tools/list builds an input entry.tool list.viitself is unchanged.MCP Server.lvlib: lists the two new VIs.test tools list error descriptions.vi(new) checks:fake tool error descriptions.viwith its registration VIAdd Fixture Error Descriptions Tool.vi, both wired intoTest_MCP_Server.vi.Not changed: prompts/list still sends
"description": ""for prompt arguments without one (Build Prompt List JSON.vi). That can be a follow-up.Code summary
To be added once the review report is posted.
Verified
Get Connector Pane Info.viandAdd Control Details To Schema.vi, both of its assertions failed.srcandtestsis in LabVIEW 20.0 format (checked from theversresources), and the new VIs recordMCP Server.lvlibas their owner.Not verified
Known rough edges
Add Control Details To Schema.viandAdd Array Items To Schema.viwere placed by script and sit tight next to their neighbours. The block-diagram cleanup PR that follows this one will tidy these VIs.tool list.viandTest tools list.vistill shows"description":"".🤖 Generated with Claude Code