Skip to content

Include default project URL in update_project and create_project_status_update tool descriptions#15502

Merged
pelikhan merged 4 commits intomainfrom
copilot/update-tools-json-output
Feb 13, 2026
Merged

Include default project URL in update_project and create_project_status_update tool descriptions#15502
pelikhan merged 4 commits intomainfrom
copilot/update-tools-json-output

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

AI agents using update_project and create_project_status_update tools need visibility into the configured default project URL to understand which project they're operating on.

Changes

  • tool_description_enhancer.go: Added cases for update_project and create_project_status_update to append default project URL to tool descriptions when configured in frontmatter
  • safe_outputs_tools_test.go: Added test coverage for both tools with project URL configurations

Example

With this frontmatter configuration:

safe-outputs:
  update-project:
    max: 5
    project: "https://github.com/orgs/myorg/projects/42"

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.

Copilot AI and others added 2 commits February 13, 2026 20:08
…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
Copilot AI requested a review from pelikhan February 13, 2026 20:14
@pelikhan pelikhan marked this pull request as ready for review February 13, 2026 20:14
Copilot AI review requested due to automatic review settings February 13, 2026 20:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 append Default project URL: ... for update_project and create_project_status_update when 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.

@pelikhan pelikhan merged commit fb9e209 into main Feb 13, 2026
57 checks passed
@pelikhan pelikhan deleted the copilot/update-tools-json-output branch February 13, 2026 20:41
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.

2 participants