(args: z.infer<typeof LiveStopArgs>, _ctx: ToolContext)
| 398 | argsSchema = LiveArgs; |
| 399 | isReadOnly = false; |
| 400 | isDestructive = false; |
| 401 | |
| 402 | async execute(args: z.infer<typeof LiveArgs>, ctx: ToolContext): Promise<ToolResult> { |
| 403 | let id: string; |
| 404 | let manifest; |
| 405 | try { |
| 406 | id = resolveArtifactId(args); |
| 407 | // Validate the artifact exists up-front so the model gets a clean error, not a 500 page. |
| 408 | ({ manifest } = await getArtifact(ctx.cwd, id)); |
| 409 | } catch (e: any) { |
| 410 | return { content: e?.message ?? String(e), isError: true }; |
| 411 | } |
| 412 |
nothing calls this directly
no test coverage detected