> For the complete documentation index, see [llms.txt](https://cyr1en.gitbook.io/commandprompter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cyr1en.gitbook.io/commandprompter/features/console-delegate.md).

# Console Delegate

Console Delegate lets the server console ask one player for input and dispatch the completed command as console.

```
/consoledelegate <target> <command...>
/cd <target> <command...>
```

* `target` accepts a player name or a single-target Minecraft selector such as `@p`. Multi-target selectors such as `@a` are rejected by the command's singular player argument.
* `command...` is a greedy command string and may start with `/`.
* `%target_player%` is replaced with the target player's name.
* The sender must be the console and have `promptpaper.consoledelegate`.

When `Enable-Permission` is enabled and the delegated command contains prompt tags, the target player must also have `promptpaper.use`. A rejected prompt flow is not dispatched literally. This target-side gate does not block a direct delegated string with no prompt tags.

## Example

```
/consoledelegate CyR1en gamemode <What gamemode?> %target_player%
```

If CyR1en answers `creative`, console dispatches:

```
gamemode creative CyR1en
```

If the delegated string contains no prompt tags, it is dispatched immediately as console. An unresolved preset or another rejected tag form is not dispatched literally.

## Post-commands

An inline post-command without an executor marker inherits the main command's console context:

```
/cd CyR1en gamemode <Gamemode?> %target_player% <!broadcast %target_player% selected {0}>
```

Use `@player` to force an inline post-command to run as the target player. Use `@console` to be explicit. Preset post-commands do not inherit: their `execute_as` property is authoritative.

{% hint style="danger" %}
Console Delegate gives player-supplied answers to a console command. Keep the command template fixed, validate untrusted input, and grant access only to trusted console automation.
{% endhint %}


---

# 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://cyr1en.gitbook.io/commandprompter/features/console-delegate.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.
