CODE TOOL
# support
l
Hello VAPI Team, Why does the Tool (specifically the Code Tool) no longer exist in the platform? What changed, and why is it no longer available to create? Thank you for the clarification. Best regards, David
@Vapi Support Bot
@Vapi
c
Hi LUMIN AI, The Code Tool, along with other tools, is accessible through the Vapi API and SDK. If you encounter an issue where the Code Tool seems unavailable, it might be due to recent platform updates or an oversight in the user interface. To create or manage tools, you can use the API as a workaround. Here are some snippets for creating a tool using the SDK: Python:
Copy code
python
from vapi import CreateApiRequestToolDto, Vapi
client = Vapi(token="YOUR_TOKEN")
client.tools.create(request=CreateApiRequestToolDto(method="POST", url="url"))
Typescript:
Copy code
typescript
import { VapiClient } from "@vapi/server-sdk";
const client = new VapiClient({ token: "YOUR_TOKEN" });
await client.tools.create({ type: "code" });
Go:
Copy code
go
import (
    context "context"
    option "github.com/VapiAI/server-sdk-go/option"
    serversdkgoclient "github.com/VapiAI/server-sdk-go/client"
)

client := serversdkgoclient.NewClient(
    option.WithToken("YOUR_TOKEN"),
)

response, err := client.Tools.Create(context.TODO(), &serversdkgo.ToolsCreateRequest{
    CreateDtmfToolDto: &serversdkgo.CreateDtmfToolDto{},
})
For more detailed API references, you can visit the [Vapi API documentation](https://docs.vapi.ai/api-reference/tools/create). If you're encountering specific issues with another tool or feature, please provide more details, and I'll be happy to assist further.