Can a tool call functions from another tool, aka "go outside it's own sandbox"?

i’m wondering if i could create a button inside my tool, that can run a function from another tool? i don’t want to include the tool / lua code in my tool.

The function you need is in another lua file. Have you tried using require with the path to that file?

If this works, you should create tools whose functions are not in the main.lua file, and use require on both. This would require knowing the paths. I guess you could then call any function.

1 Like

Code:

1 Like