# How to query the printer for tool position

**URL:** <https://klipper.discourse.group/t/how-to-query-the-printer-for-tool-position/8839>\
**Category:** General Discussion\
**Created:** [June 7, 2023, 6:08am UTC](https://klipper.discourse.group/t/how-to-query-the-printer-for-tool-position/8839 "2023-06-07T06:08:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MetaCake](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/metacake/32/5756_2.png) [@MetaCake](https://klipper.discourse.group/u/MetaCake)\
**Post date:** [June 7, 2023, 6:08am UTC](https://klipper.discourse.group/t/how-to-query-the-printer-for-tool-position/8839/1 "2023-06-07T06:08:40Z")

</div>

Printer Model: Ender 3 Pro  
MCU / Printerboard: 4.2.7  
[klippy.log](https://klipper.discourse.group/uploads/short-url/8qs7P4w3PgeLgXX1D3SRujpXeFH.log) (701.7 KB)

I am running Klipper through Octoprint and was wanting to make a Macho that would query the printer for the current location of the tool head as this function is not natively in Octoprint running Klipper. I can’t find a plugin that will let me press a button to query the position. I found the “objects/query” section of the Klipper documentation under API server but im unable to get the command to work [Here](https://www.klipper3d.org/API_Server.html?h=query#objectsquery) . Does anyone know a command that will get the current position of the tool head

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [June 7, 2023, 7:42am UTC](https://klipper.discourse.group/t/how-to-query-the-printer-for-tool-position/8839/2 "2023-06-07T07:42:06Z")

</div>

[get\_position](https://www.klipper3d.org/G-Codes.html#get_position)
