> For the complete documentation index, see [llms.txt](https://smuddgge.gitbook.io/leaf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smuddgge.gitbook.io/leaf/4.4/commands/other-types/find.md).

# find

{% code title="Example" overflow="wrap" %}

```yaml
find:
  type: "find"
  enabled: true
  name: "find"
  permission: "leaf.find"
  not_found: "{error_colour}Player could not be found."
  # Placeholders will parse in terms of the player.
  found: "{message} Player was found on {server_formatted}"
  found_no_args: "{message} You are on {server_formatted}"
```

{% endcode %}

{% code title="Example 2 (Multiple Lines)" overflow="wrap" %}

```yaml
find:
  type: "find"
  enabled: true
  name: "find"
  permission: "leaf.find"
  not_found: 
  - "{error_colour}message:"
  - "{error_colour}Player could not be found."
  # Placeholders will parse in terms of the player.
  found: 
  - "{message}message:"
  - "{message} Player was found on {server_formatted}"
  found_no_args: "{message} You are on {server_formatted}"
```

{% endcode %}

{% code title="Example 3 (Discord Bot)" overflow="wrap" %}

```yaml
find:
  type: "find"
  enabled: true
  name: "find"
  permission: "leaf.find"
  not_found: "{error_colour}Player could not be found."
  # Placeholders will parse in terms of the player.
  found: "{message} Player was found on {server_formatted}"
  found_no_args: "{message} You are on {server_formatted}"
  # Discord bot support.
  discord_bot:
    enabled: false
    allowed_channels:
      - "1150803388309712947"
    channel_not_allowed: "You cannot run this command in this channel."
    permissions:
      - ADMINISTRATOR
    no_permission: "You do not have permission to run this command."
    not_found: "Player could not be found."
    found: "Player was found on {server_formatted}"
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://smuddgge.gitbook.io/leaf/4.4/commands/other-types/find.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
