> For the complete documentation index, see [llms.txt](https://anything-world.gitbook.io/anything-world/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anything-world.gitbook.io/anything-world/unity/documentation/anythingworld-api/voice/commandrequester/requestandreturncommand.md).

# RequestAndReturnCommand

AnythingWorld.Voice.CommandRequester.RequestAndReturnCommand

#### Declaration

```csharp
private static IEnumerator RequestAndReturnCommand(string input, Action<string> ReturnAction)
```

#### Parameters

| input     | Plain text command to be parsed by API.                                                           |
| --------- | ------------------------------------------------------------------------------------------------- |
| OnSuccess | Action that will be invoked on successfully parsed and returned command, must take a string input |

#### Description

Requests a command from a plain text input string and returns the resulting command as a JSON-formatted string.
