# Workflow Application: GETAGENTTOOL usage

**URL:** <https://discuss.workflowgen.com/t/workflow-application-getagenttool-usage/2263>\
**Category:** Workflow Applications\
**Created:** [December 5, 2024, 9:16pm UTC](https://discuss.workflowgen.com/t/workflow-application-getagenttool-usage/2263 "2024-12-05T21:16:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 5, 2024, 9:16pm UTC](https://discuss.workflowgen.com/t/workflow-application-getagenttool-usage/2263/1 "2024-12-05T21:16:34Z")

</div>

The GETAGENTTOOL workflow application allows you to extract a tool and its information from a list of tools that can be provided by an application such as [OPENAICHAT](https://discuss.workflowgen.com/t/workflow-application-openaichat-usage/2226).

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

| Name | Type | Direction | Description |
| --- | --- | --- | --- |
| `TOOLS` | TEXT | IN | Table of tools in JSON format (required) |
| `TOOL_INDEX` | NUMERIC | IN | Array index for tool extraction; defaults to `0` |
| `TOOL` | TEXT | OUT | Extracted tool in JSON format |
| `TOOL_NAME` | TEXT | OUT | Name of tool |
| `TOOL_ID` | TEXT | OUT | ID of tool |
| `TOOL_PARAMETERS` | TEXT | OUT | Tool settings in JSON format |
| `propertyToExtract` | TEXT | OUT | Property to extract in settings |

## Example

#### IN

| Parameter | Value |
| --- | --- |
| `TOOLS` | `[{ "name":"GET_STOCK_INFORMATION", "id":"call_Vuc2Ga8jP7vUksxG9C0fwpY8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }, { "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }]` |
| `TOOL_INDEX` | `1` |

#### OUT

| Parameter | Value |
| --- | --- |
| `TOOL` | `{ "name": "GET_STOCK_INFORMATION", "id": "call_nq3SCVUk0FjAHCeqOZGNXpC8", "parameters": { "product_name": "Vis", "serial_number": "V45645" } }` |
| `TOOL_NAME` | `GET_STOCK_INFORMATION` |
| `TOOL_ID` | `call_nq3SCVUk0FjAHCeqOZGNXpC8` |
| `TOOL_PARAMETERS` | `{ "product_name": "Vis", "serial_number": "V45645" }` |
| `serial_number` | `V45645` |
| `product_name` | `Vis` |

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [December 17, 2024, 2:29pm UTC](https://discuss.workflowgen.com/t/workflow-application-getagenttool-usage/2263/2 "2024-12-17T14:29:28Z")

</div>

Hi team,  
What’s the difference between this application and JSONTODATA?  
Is this specifically for JSON objects that have “name”, “id”, and “parameters” as keys?

---

<div class="post-metadata">

**Author:** ![petrope](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/petrope/32/705_2.png) [@petrope](https://discuss.workflowgen.com/u/petrope)\
**Post date:** [December 18, 2024, 1:50pm UTC](https://discuss.workflowgen.com/t/workflow-application-getagenttool-usage/2263/3 "2024-12-18T13:50:36Z")

</div>

Hi,

\_\_JSONPath is also a working method, query the peremeters of a JSON.  
this scheme ID-NAME-PARAMETERS is the only way to get input?
