> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layercode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool calling

> How to set up tool calling with Layercode. Also known as function calling.

Function calling is one of the first things you will want to do after setting up your agent.

Because Layercode let's you work directly with text, you can use existing tools.

There are many frameworks which can help you with function calling.

## TypeScript:

* [ai SDK](https://ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling)
* [mastra](https://mastra.ai/en/examples/tools/calling-tools#from-an-agent)  - see [example here](https://github.com/jackbridger?tab=repositories)

## Python:

* [LlamaIndex](https://docs.llamaindex.ai/en/stable/module_guides/deploying/agents/tools/)
* [LangChain](https://python.langchain.com/docs/concepts/tool_calling/)
* [CrewAI](https://docs.crewai.com/en/concepts/tools)

We have written a guide on [tool calling in Next.js with Layercode](/how-tos/tool-calling-js)
