# Examples

A collection of how-tos and examples for threads.

* [Gall](/urbit-os/base/threads/examples/gall.md) - Examples of interacting with threads from Gall agents.
* [Fetch JSON](/urbit-os/base/threads/examples/get-json.md) - Get some JSON from an external website.
* [Child Thread](/urbit-os/base/threads/examples/child-thread.md) - Spawn and manage threads from within threads.
* [Main-loop](/urbit-os/base/threads/examples/main-loop.md) - Create a loop - useful for long-running threads and for trying the same input against multiple functions.
* [Poke Agent](/urbit-os/base/threads/examples/poke-agent.md) - Poke an agent from a thread.
* [Scry](/urbit-os/base/threads/examples/scry.md) - Scry example.
* [Take Fact](/urbit-os/base/threads/examples/take-fact.md) - Take a fact from arvo or an agent.


---

# 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://docs.urbit.org/urbit-os/base/threads/examples.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.
