Skip to content

Comments

refactor(tools): move tool descriptions to jinja templates#2177

Open
nikhilk7153 wants to merge 3 commits intoOpenHands:mainfrom
nikhilk7153:feat/tools-j2-descriptions
Open

refactor(tools): move tool descriptions to jinja templates#2177
nikhilk7153 wants to merge 3 commits intoOpenHands:mainfrom
nikhilk7153:feat/tools-j2-descriptions

Conversation

@nikhilk7153
Copy link

@nikhilk7153 nikhilk7153 commented Feb 23, 2026

Fix #2129

Summary

  • move tool definition descriptions from inline Python strings into packaged .j2 templates across openhands-tools
  • render descriptions at tool creation time to preserve dynamic context (for example, working directory and vision-aware variants)
  • keep tool behavior and schemas unchanged while making prompt text easier to maintain

nikhilk7153 and others added 3 commits February 23, 2026 01:23
Move tool definition description text into packaged .j2 files and render them at tool creation time to simplify maintenance while preserving runtime behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Include new tool .j2 template paths in the PyInstaller spec so agent-server binaries can load tool descriptions at runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize tool description implementation patterns

1 participant