Bug 477648

Summary: Python API Active Tool request
Product: [Applications] krita Reporter: keyth_qcfx2 <keyth2363214>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: cromachina
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description keyth_qcfx2 2023-11-28 02:28:39 UTC
A python API question to know which tool is active.
could be something like :

Krita.instance().activeTool()

or in alternative to be able to do:

- Krita.instance().tools() : giving the list of all tools available
- boolean = Krita.instance().action( "InteractionTool" ).isChecked() : to know if a given tool is active
Comment 1 cromachina 2025-10-28 04:49:54 UTC
I think this would be useful too, along with setting the tool and subtool. Then users could more easily create different kinds of input strategies like temporary shortcuts or shortcuts that when pressed twice in a row return to the previous tool (like how Paint Tool SAI can behave).