Skip to main content

Execute Tool

Execute a specific tool.
POST /users/:userId/tools

Request Body

{
  "name": "write_file",
  "arguments": {
    "path": "allowed_directory/example.txt",
    "content": "Hello World!"
  }
}

Response

{
  "success": true,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "File written successfully"
      }
    ]
  }
}

List Tools

Get a list of available tools.
GET /users/:userId/tools

Response

{
  "tools": [
    {
      "name": "write_file",
      "description": "Write content to a file",
      "arguments": {
        "path": "string",
        "content": "string"
      }
    },
    {
      "name": "read_file",
      "description": "Read content from a file",
      "arguments": {
        "path": "string"
      }
    }
  ]
}