# How to detect tool calls in graph, and perform certain actions?

**URL:** <https://forum.langchain.com/t/how-to-detect-tool-calls-in-graph-and-perform-certain-actions/1099>\
**Category:** LangGraph\
**Tags:** python-help\
**Created:** [August 12, 2025, 4:24pm UTC](https://forum.langchain.com/t/how-to-detect-tool-calls-in-graph-and-perform-certain-actions/1099 "2025-08-12T16:24:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![umair313](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/umair313/32/557_2.png) [@umair313](https://forum.langchain.com/u/umair313)\
**Post date:** [August 12, 2025, 4:24pm UTC](https://forum.langchain.com/t/how-to-detect-tool-calls-in-graph-and-perform-certain-actions/1099/1 "2025-08-12T16:24:25Z")

</div>

Hi, I am working on with livekit and langgraph and building conversation agent.  
is there a way to know which tool started to execute and completed it execution, I wannted to trigger some voices based on that.

---

<div class="post-metadata">

**Author:** ![xuro-langchain](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/xuro-langchain/32/273_2.png) [@xuro-langchain](https://forum.langchain.com/u/xuro-langchain)\
**Post date:** [August 13, 2025, 1:38pm UTC](https://forum.langchain.com/t/how-to-detect-tool-calls-in-graph-and-perform-certain-actions/1099/2 "2025-08-13T13:38:40Z")

</div>

Yes, tool calls can be detected with the following

In the AIMessage output, it will have a “tool\_call” property. Similarly, after the AIMessage there will be a ToolMessage added to the message history

See an example here: [2. Add tools](https://langchain-ai.github.io/langgraph/tutorials/get-started/2-add-tools/#5-create-a-function-to-run-the-tools)
