# Tool Use

For most real-world applications, language models will have to access information by controlling tools—doing web searches, checking your calendar, looking up emails, or running calculations. We’ll look at two examples here:

1. [Running web searches using Google](/chapters/tool-use/web-search.md)
2. [Executing computations using the Python interpreter](/chapters/tool-use/interpreters.md)

In both cases, we’ll extend [the basic question-answerer](/chapters/question-answering/q-and-a-about-short-texts.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://primer.ought.org/chapters/tool-use.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
