Create your own tools
Contributor Guide
Building Tools for Move Agent Kit
Move Agent Kit uses LangChain's tool format for all blockchain interactions. This guide will help you create new tools for the kit.
Tool Structure
import { Tool } from "langchain/tools";
class MyMoveTool extends Tool {
name = "my_move_tool";
description = "Description of what your tool does";
constructor() {
super();
}
async _call(args: string): Promise<string> {
// Your tool implementation
}
}Quick Start Example
Here's a simple token transfer tool example:
Tool Requirements
Extend the
Toolclass from LangChainDefine a unique
namefor your toolProvide a clear
descriptionof its functionalityImplement the
_callmethod with your logic
Testing Your Tool
Contributing Your Tool
Fork the repository
Create your tool in the
toolsdirectoryAdd tests to the
testsdirectorySubmit a pull request to https://github.com/MetaMove/move-agent-kit/pulls
For examples and existing tools, check our GitHub repository: github.com/move-agent-kit/tools
You can even create your own SDK for your tools and use it with createAptosTools
Community Guidelines
Follow TypeScript best practices
Include comprehensive tests
Document your code
Keep tools focused and single-purpose
Need help? Join our Discord: discord.gg/move-agent-kit
Last updated