# Api call to get and set current selected tool?

**URL:** <https://krita-artists.org/t/api-call-to-get-and-set-current-selected-tool/184258>\
**Category:** Plugins Development\
**Created:** [May 24, 2026, 6:13pm UTC](https://krita-artists.org/t/api-call-to-get-and-set-current-selected-tool/184258 "2026-05-24T18:13:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![general-avalanche-43](https://krita-artists.org/user_avatar/krita-artists.org/general-avalanche-43/32/112107_2.png) [@general-avalanche-43](https://krita-artists.org/u/general-avalanche-43)\
**Post date:** [May 25, 2026, 7:16am UTC](https://krita-artists.org/t/api-call-to-get-and-set-current-selected-tool/184258/3 "2026-05-25T07:16:00Z")

</div>

I’ve used this workaround made by Grum999 a bunch of times in plugins, tested previously on 5.2.9.

> [@How to know which tool is currently in use](https://krita-artists.org/t/how-to-know-which-tool-is-currently-in-use/52421/2):
>
> Hi There’s no “easy” method for that Here’s my module for that: # ----------------------------------------------------------------------------- # PyKritaToolKit # Copyright (C) 2019-2022 - Grum999 # ----------------------------------------------------------------------------- # SPDX-License-Identifier: GPL-3.0-or-later # # https://spdx.org/licenses/GPL-3.0-or-later.html # ----------------------------------------------------------------------------- # A Krita plugin framework # ---------------…

---

_[View the full topic](https://krita-artists.org/t/api-call-to-get-and-set-current-selected-tool/184258)._
