Is this for typescript/javascript only ? or can executables be used as well ? Or perhaps a hybrid solution call exe from typescript ? #2005

Closed
opened 2026-02-16 17:33:42 -05:00 by yindo · 2 comments
Owner

Originally created by @SkybuckFlying on GitHub (Oct 8, 2025).

Originally assigned to: @jayair on GitHub.

https://opencode.ai/docs/custom-tools/

^ Documentation unclear to me.

My guess would be:

"typescript" or "javascript" code.

I wouldn't call this "custom-tools"... if that's the cause... more like "custom-scripting".... that be a better description.

Originally created by @SkybuckFlying on GitHub (Oct 8, 2025). Originally assigned to: @jayair on GitHub. https://opencode.ai/docs/custom-tools/ ^ Documentation unclear to me. My guess would be: "typescript" or "javascript" code. I wouldn't call this "custom-tools"... if that's the cause... more like "custom-scripting".... that be a better description.
yindo closed this issue 2026-02-16 17:33:42 -05:00
Author
Owner

@rekram1-node commented on GitHub (Oct 8, 2025):

at least some part of it has to be defined in typescript or javascript currently.

These are custom tools, custom scripts would be vaguer and while a tool can be a script not all scripts can be tools. So these may fall under the custom scripting category at times, they will always fall under the tool category.

You could write tools in whatever language you want, you just need to define a simple TS or JS layer above it

maybe we should have an example of this documented using the "$" from bun to run a python tool or something

@rekram1-node commented on GitHub (Oct 8, 2025): at least some part of it has to be defined in typescript or javascript currently. These are custom tools, custom scripts would be vaguer and while a tool can be a script not all scripts can be tools. So these may fall under the custom scripting category at times, they will always fall under the tool category. You could write tools in whatever language you want, you just need to define a simple TS or JS layer above it maybe we should have an example of this documented using the "$" from bun to run a python tool or something
Author
Owner

@jayair commented on GitHub (Nov 18, 2025):

Added more context to the docs on this and added a Python example: https://opencode.ai/docs/custom-tools/#write-a-tool-in-python

@jayair commented on GitHub (Nov 18, 2025): Added more context to the docs on this and added a Python example: https://opencode.ai/docs/custom-tools/#write-a-tool-in-python
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2005