> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/vspy-3-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-command-text-api.md).

# Script Type Function Block Command: Text API

### Command Description

This command allows [Text API](/vspy-3-documentation/3.9.15/vehicle-network-interface-hardware/vehicle-spy-text-api.md) commands to be sent by a function block.

### Value Field Parameters

Double-click in the **Value** field to bring up the dialog in Figure 1, where you can set up the parameters for the command you want to send.

![Figure 1: Text API command dialog box.](https://2396693198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlRJv2XDCMeZSU0VbeZlG%2Fuploads%2Fgit-blob-b2f8cd18ffebedea1ce0d93c58bd62ed34cd7576%2Ffb_text_api.gif?alt=media)

### Expression

You build the command string here using the [Expression Builder](/vspy-3-documentation/3.9.15/shared-features-in-vehicle-spy/shared-features-expression-builder.md). This can be a literal string or can be formed from signal values.

### Assign Result to Application Signal (Optional)

Results returned from sending the **Text API** command can be assigned to an application signal by selecting it here.

### Remote Server

Use this optional drop-down box to send the command to a different computer or copy of Vehicle Spy.


---

# 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://docs.intrepidcs.com/vspy-3-documentation/3.9.15/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks/function-blocks-types/script-type-function-block-commands/script-type-function-block-command-text-api.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.
