LearnNewsExamplesServices
Frontmatter
id7609
titleNew Tool: Get Local Issue by ID
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 22, 2025, 2:44 PM
updatedAtOct 22, 2025, 2:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/7609
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 22, 2025, 2:53 PM

New Tool: Get Local Issue by ID

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 22, 2025, 2:44 PM

To improve an agent's ability to quickly access context, we need a new tool, get_local_issue_by_id, that can retrieve a local issue's markdown file directly by its number.

This tool will provide a direct lookup mechanism, bypassing the need to manually browse the file system or parse the output of other tools. It should be intelligent enough to find the issue whether it is in the active ISSUES directory or recursively within the ISSUE_ARCHIVE directory.

Acceptance Criteria

  1. A new service, LocalFileService.mjs, is created within the github-workflow server to handle local file system lookups.
  2. A method getIssueById(issueNumber) is implemented in the new service.
  3. The method accepts an issue number as a string (e.g., "7608" or "#7608").
  4. The method uses configuration (issueFilenamePrefix, issuesDir, archiveDir) to locate the file.
  5. If the file is found, the service returns a JSON object containing both the absolute filePath and the file's content.
  6. If the file is not found, a structured 404 Not Found error is returned.
  7. A new endpoint, GET /issues/{issue_number}/content, is added to openapi.yaml with the operationId: get_local_issue_by_id.
  8. A new schema, LocalIssueResponse, is added to openapi.yaml to define the successful response object (filePath, content). The endpoint's 200 response must use this schema with an application/json content type.
  9. The new tool is registered in the github-workflow/services/toolService.mjs.
tobiu assigned to @tobiu on Oct 22, 2025, 2:44 PM
tobiu added the enhancement label on Oct 22, 2025, 2:44 PM
tobiu added the ai label on Oct 22, 2025, 2:44 PM
tobiu referenced in commit ba7c596 - "New Tool: Get Local Issue by ID #7609" on Oct 22, 2025, 2:53 PM
tobiu closed this issue on Oct 22, 2025, 2:53 PM