> For the complete documentation index, see [llms.txt](https://docs.advantys.com/workflowgen-administration-module-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.advantys.com/workflowgen-administration-module-reference-guide/workflow-applications/getagenttooldata.md).

# GETAGENTTOOLDATA

## Overview

The **GETAGENTTOOLDATA** workflow application allows you to extract information from a tool that can be provided by an application such as [OPENAICHAT](/workflowgen-administration-module-reference-guide/workflow-applications/openai/openaichat.md).

## How it works

* The application allows you to extract the name, identifier, and parameters of the tool being manipulated.
* It's also possible to extract the parameters one by one by specifying the name of the parameter directly in the name.

## Parameters

<table data-full-width="true"><thead><tr><th valign="top">Parameter</th><th width="168.5" valign="top">Type</th><th width="107" valign="top">Direction</th><th valign="top">Description</th></tr></thead><tbody><tr><td valign="top"><code>TOOL_DATA</code></td><td valign="top">TEXT</td><td valign="top">IN</td><td valign="top"><strong>Required</strong><br>Tool in JSON format to manipulate</td></tr><tr><td valign="top"><code>TOOL_NAME</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Name of tool</td></tr><tr><td valign="top"><code>TOOL_ID</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">ID of tool</td></tr><tr><td valign="top"><code>TOOL_PARAMETERS</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Tool parameters in JSON format</td></tr><tr><td valign="top"><code>propertyToExtract</code></td><td valign="top">TEXT</td><td valign="top">OUT</td><td valign="top">Property to extract in settings</td></tr></tbody></table>

## Example

#### IN

<table><thead><tr><th valign="top">Parameter</th><th valign="top">Value</th></tr></thead><tbody><tr><td valign="top"><code>TOOL_DATA</code></td><td valign="top"><code>{ "name":"GET_STOCK_INFORMATION", "id":"call_75hCa1n3NZtlLLx1VGqSXY8C", "parameters": { "serial_number":"v456" } }</code></td></tr></tbody></table>

#### OUT

<table><thead><tr><th valign="top">Parameter</th><th valign="top">Value</th></tr></thead><tbody><tr><td valign="top"><code>TOOL_NAME</code></td><td valign="top"><code>GET_STOCK_INFORMATION</code></td></tr><tr><td valign="top"><code>TOOL_ID</code></td><td valign="top"><code>call_75hCa1n3NZtlLLx1VGqSXY8C</code></td></tr><tr><td valign="top"><code>TOOL_PARAMETERS</code></td><td valign="top"><code>{ "serial_number":"v456" }</code></td></tr><tr><td valign="top"><code>serial_number</code></td><td valign="top"><code>v456</code></td></tr></tbody></table>
