(toolName: string, args: Record<string, unknown>)
| 16 | let modelContext: ModelContextMock; |
| 17 | |
| 18 | async function executeTool(toolName: string, args: Record<string, unknown>) { |
| 19 | const toolsForSubmit = await modelContext.getTools(); |
| 20 | const testFormSubmitTool = toolsForSubmit.find((t) => t.name === toolName)!; |
| 21 | return modelContext.executeTool(testFormSubmitTool, args); |
| 22 | } |
| 23 | |
| 24 | beforeEach(() => { |
| 25 | // Firefox throws a security error with this. |
no test coverage detected