toolmark-monorepo / @toolmark/testing / ToolsFixture
Interface: ToolsFixture
Defined in: packages/testing/src/fixture.ts:15
Drives page tools through globalThis.__toolmark_test__ (an in-page test consumer).
Methods
autoConfirm()
autoConfirm(
on):void
Defined in: packages/testing/src/fixture.ts:33
When on, ToolsFixture.call auto-approves any needs_confirmation outcome.
Parameters
on
boolean
Returns
void
call()
call(
name,input?):Promise<ToolResult<unknown>>
Defined in: packages/testing/src/fixture.ts:29
Calls a tool as caller test. When ToolsFixture.autoConfirm is on and the result is needs_confirmation, approves it and returns the final result instead.
Parameters
name
string
input?
unknown
Returns
Promise<ToolResult<unknown>>
confirm()
confirm(
confirmId,outcome):Promise<ToolResult<unknown>>
Defined in: packages/testing/src/fixture.ts:31
Completes a pending deferred confirmation.
Parameters
confirmId
string
outcome
Returns
Promise<ToolResult<unknown>>
get()
get(
name):Promise<ToolManifest|undefined>
Defined in: packages/testing/src/fixture.ts:24
Full manifest entry of one tool, as caller test sees it.
Parameters
name
string
Full tool name.
Returns
Promise<ToolManifest | undefined>
The entry, or undefined when no such tool is registered or it is hidden from caller test (when: false, policy).
list()
list():
Promise<ToolManifestSummary[]>
Defined in: packages/testing/src/fixture.ts:17
Summary manifest visible to caller test.
Returns
Promise<ToolManifestSummary[]>