(input)
| 256 | ${DESCRIPTION}` |
| 257 | }, |
| 258 | async validateInput(input) { |
| 259 | const { url } = input |
| 260 | try { |
| 261 | new URL(url) |
| 262 | } catch { |
| 263 | return { |
| 264 | result: false, |
| 265 | message: `Error: Invalid URL "${url}". The URL provided could not be parsed.`, |
| 266 | meta: { reason: 'invalid_url' }, |
| 267 | errorCode: 1, |
| 268 | } |
| 269 | } |
| 270 | return { result: true } |
| 271 | }, |
| 272 | renderToolUseMessage, |
| 273 | renderToolUseProgressMessage, |
| 274 | renderToolResultMessage, |
nothing calls this directly
no outgoing calls
no test coverage detected