Update /tools desc to show the name of each tool as known to the model (#1091)

This commit is contained in:
Billy Biggs 2025-06-15 23:09:53 -07:00 committed by GitHub
parent 197704c630
commit 40fbb61a1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 15 deletions

View file

@ -606,8 +606,8 @@ Add any other context about the problem here.
// Should only show tool1 and tool2, not the MCP tools
const message = mockAddItem.mock.calls[1][0].text;
expect(message).toContain('\u001b[36mTool1\u001b[0m');
expect(message).toContain('\u001b[36mTool2\u001b[0m');
expect(message).toContain('Tool1');
expect(message).toContain('Tool2');
expect(commandResult).toBe(true);
});
@ -664,9 +664,9 @@ Add any other context about the problem here.
});
const message = mockAddItem.mock.calls[1][0].text;
expect(message).toContain('\u001b[36mTool1\u001b[0m');
expect(message).toContain('Tool1');
expect(message).toContain('Description for Tool1');
expect(message).toContain('\u001b[36mTool2\u001b[0m');
expect(message).toContain('Tool2');
expect(message).toContain('Description for Tool2');
expect(commandResult).toBe(true);
});