Skip to content

Custom Tool Documentation example is incorrect #18778

@divinedragon

Description

@divinedragon

Description

Custom Tool Example section references files with tools as the subfolder inside .opencode. I believe this is incorrect as I was trying to create a custom tool and keep getting Failed with exit code 2.

I happen to stumble onto this Repository which clearly indicates that the correct folder path is .opencode/tool instead of .opencode/tools.

Current

Documentation mentions these paths in the examples:

.opencode/tools/add.py
.opencode/tools/python-add.ts

Expected

I believe these should be adjusted to below

.opencode/tool/add.py
.opencode/tool/python-add.ts

Plugins

No response

OpenCode version

1.3.0

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04

Terminal

Kitty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions