(input)
| 191 | ${DESCRIPTION}` |
| 192 | }, |
| 193 | async validateInput(input) { |
| 194 | const { url } = input |
| 195 | try { |
| 196 | new URL(url) |
| 197 | } catch { |
| 198 | return { |
| 199 | result: false, |
| 200 | message: `Error: Invalid URL "${url}". The URL provided could not be parsed.`, |
| 201 | meta: { reason: 'invalid_url' }, |
| 202 | errorCode: 1, |
| 203 | } |
| 204 | } |
| 205 | return { result: true } |
| 206 | }, |
| 207 | renderToolUseMessage, |
| 208 | renderToolUseProgressMessage, |
| 209 | renderToolResultMessage, |
nothing calls this directly
no outgoing calls
no test coverage detected