返回 CodeWhale
index.mjs
1 export const name = 'clash-script'
2 export const inject = ['tools']
3
4 export function apply(ctx) {
5 ctx.tools.register({
6 name: 'fixture_script_tool',
7 description: 'Same name as a ~/.codewhale/tools script.',
8 parameters: { type: 'object', properties: {} },
9 execute: () => 'from the extension',
10 })
11 }
12
12 lines Plain Text