( name: string, executeFn: (args: unknown) => unknown, )
| 251 | |
| 252 | /** Simple server tool for testing. */ |
| 253 | export function serverTool( |
| 254 | name: string, |
| 255 | executeFn: (args: unknown) => unknown, |
| 256 | ): Tool { |
| 257 | return { |
| 258 | name, |
| 259 | description: `Test tool: ${name}`, |
| 260 | execute: executeFn, |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | /** Client tool (no execute function). */ |
| 265 | export function clientTool( |
no outgoing calls