返回 CodeWhale
index.mjs
1 export const inject = ['tools']
2 export function apply(ctx) {
3 ctx.tools.register({ name: 'crash_probe', description: 'Terminate this fixture host.',
4 parameters: { type: 'object', properties: {} },
5 execute() { process.kill(process.pid, 'SIGKILL') },
6 })
7 }
8
8 lines Plain Text