[](https://js.langchain.com/docs/how_to/tools_prompting/): LLM should read this page when: 1) Building chains that allow the LLM to call tools or functions dynamically based on its own output 2) Integrating ad-hoc tool calling capabilities into language models or chatbots 3) Creating prompts that instruct the LLM to output JSON blobs representing tool names and arguments This page covers how to create a prompt that instructs an LLM to output JSON blobs specifying tools to invoke and their arguments. It demonstrates rendering tool descriptions, parsing the LLM's JSON output, invoking the chosen tool, and handling multiple tools.

