(args: ToolArgs, key: string)
| 17 | type ToolArgs = Record<string, unknown> | undefined |
| 18 | |
| 19 | function stringArg(args: ToolArgs, key: string): string { |
| 20 | const value = args?.[key] |
| 21 | return typeof value === 'string' ? value.trim() : '' |
| 22 | } |
| 23 | |
| 24 | function firstStringArg(args: ToolArgs, ...keys: string[]): string { |
| 25 | for (const key of keys) { |
no outgoing calls
no test coverage detected