Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 896 Bytes

TESTS.md

File metadata and controls

8 lines (7 loc) · 896 Bytes

Tests

Test Rule
TestScreenShown_OffersOnlyTheToolsOfTheOpenScreen a screen offers the tools of the opened entity it shows (its Permission); another screen, or one with no permission, offers nothing
TestRun_RunsOnlyToolsOfTheOpenScreen Run runs a tool of the open screen through the session's caller; a tool of no open screen is refused
TestNew_RefusesWhatCannotWork no caller, or an opened entity no module holds, fails at New
TestScreenShown_RegistersInModelContextAndWithdraws in the browser the open screen's tools are registered in document.modelContext (JSON schema, read-only and asks-first hints; execute answers through the caller in MCP's result shape, a refusal as isError with its reason) and withdrawn when the screen changes