Conversation
…tool descriptions Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update tools.json to include project fields
Include default project URL in update_project and create_project_status_update tool descriptions
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Enhances safe-output tool descriptions so agents can see the configured default GitHub Project URL when using project-related tools, reducing ambiguity about which project operations apply to.
Changes:
- Extend
enhanceToolDescription()to appendDefault project URL: ...forupdate_projectandcreate_project_status_updatewhen configured in frontmatter. - Add unit tests covering max-only, project-URL-only, and combined configurations for both tools.
- Update generated workflow lockfiles to reflect the new description text.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/workflow/tool_description_enhancer.go | Adds constraint generation for default project URL (and max) to two project tools’ descriptions. |
| pkg/workflow/safe_outputs_tools_test.go | Adds test coverage validating the new constraints appear in tool descriptions. |
| .github/workflows/test-project-url-default.lock.yml | Updates expected locked tool description JSON to include new constraints. |
| .github/workflows/smoke-project.lock.yml | Updates expected locked tool description JSON to include new constraints. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI agents using
update_projectandcreate_project_status_updatetools need visibility into the configured default project URL to understand which project they're operating on.Changes
update_projectandcreate_project_status_updateto append default project URL to tool descriptions when configured in frontmatterExample
With this frontmatter configuration:
The generated tools.json now includes:
{ "name": "update_project", "description": "Manage GitHub Projects... CONSTRAINTS: Maximum 5 project operation(s) can be performed. Default project URL: \"https://github.com/orgs/myorg/projects/42\"." }The agent now sees the default project URL directly in the tool description, eliminating ambiguity about which project is being targeted.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.