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

  1. Extend the Tool class from LangChain

  2. Define a unique name for your tool

  3. Provide a clear description of its functionality

  4. Implement the _call method with your logic

Testing Your Tool

Contributing Your Tool

  1. Fork the repository

  2. Create your tool in the tools directory

  3. Add tests to the tests directory

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