RemoveTools removes the tools with the given names. It is not an error to remove a nonexistent tool.
(names ...string)
| 511 | // RemoveTools removes the tools with the given names. |
| 512 | // It is not an error to remove a nonexistent tool. |
| 513 | func (s *Server) RemoveTools(names ...string) { |
| 514 | s.changeAndNotify(notificationToolListChanged, func() bool { return s.tools.remove(names...) }) |
| 515 | } |
| 516 | |
| 517 | // AddResource adds a [Resource] to the server, or replaces one with the same URI. |
| 518 | // AddResource panics if the resource URI is invalid or not absolute (has an empty scheme). |