aboutsummaryrefslogtreecommitdiff
path: root/opencode/tools/files_of_intrigue.ts
blob: 43bae611e23df8cba95c1445649aa684af944086 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { tool } from "@opencode-ai/plugin"

export default tool({
  description: "Use this tool when you found an interesting file",

  args: {
    filepath: tool.schema.string().describe("The file path of an interesting file."),
    description: tool.schema.string().describe("Why is this file intriguing"),
  },

  async execute(args) {
    const message = `FILE OF INTRIGUE ${Date.now()}: ${args.filepath}, because ${args.description}!`
    console.error(`[hobs.nvim] intrigue files =${JSON.stringify(args.filepath)}`)
    return message
  },
})