Skip to content
How to access the o...
 
Notifications
Clear all

How to access the output of a tool used by an AI Agent?

4 Posts
3 Users
0 Reactions
6 Views
Ion_Turcanu
(@ion_turcanu)
Posts: 1
New Member
Topic starter
 

Hello everyone,

I have an AI agent that answers user queries. To achieve this, it invokes the “Knowledge” tool with the following input:

Tool Input:

{
    "query": "What is your name?"
}

Tool Output:

{
    "output": "Jeff"
}

The AI agent then utilizes this information to formulate a response. However, I also require direct access to the raw output from the tool so that I can utilize it later in the workflow.

Questions:

  • Is there a method to access the tool’s output directly?
  • Can I save the raw output for subsequent use within the flow?

Please provide the rewritten markdown content *it should be in the markdown format.

 
Posted : 06/03/2025 10:40 pm
solomon
(@solomon)
Posts: 78
Trusted Member
 

Unfortunately, I don't believe there's a direct method for that.

However, you could submit a feature request for this functionality.

There is a workaround, though:

Add this option to your Agent:

Enable it:

When this tool executes:

You will observe its outcome in the output:

:point_right:

If my response resolves your query, please consider marking it as the solution.

 
Posted : 06/03/2025 11:51 pm
solomon
(@solomon)
Posts: 78
Trusted Member
 

Furthermore, if you wish to filter by the tool's name, you can accomplish this as follows:

{{ $json.intermediateSteps
    .filter(item => item.action.tool === "get_pokemon_info")
    .map(item => JSON.parse(item.observation)) }}
 
Posted : 07/03/2025 12:08 am
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 14/03/2025 12:09 am
Share: