5 Custom tool
igardev edited this page 2025-09-15 14:04:08 +03:00
This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Custom tool

Overview

llama-vscode provides to the users the posibility to partially create their own tool. Custom tool is a simple one - has not parameters and returns always the same result.

How to use it

Configure the description of the tool and the returned result, enable the tool and ask the agent questions related to the tool.

Settings:

  • Tool_custom_tool_description: Description of the tool. This description will be used by the AI to decide if this tool should be used. Example: "Use this tool for information about llama.cpp and llama-server - how to build it, how to use it, options, etc."
  • Custom_tool_source: What should be returned by the tool. Could be file or a web page. Eample: https://blog.steelph0enix.dev/posts/llama-cpp-guide/ The tool returns the content of the file or the web page.

https://github.com/user-attachments/assets/46602f8c-bd45-4794-9f5c-6ebe262c396a

https://github.com/user-attachments/assets/50baa8c3-f426-4901-a443-8882da644800