MCPcopy Index your code
hub / github.com/docker/docker-agent / Tools

Method Tools

pkg/tools/builtin/memory/memory.go:156–215  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

154}
155
156func (t *ToolSet) Tools(context.Context) ([]tools.Tool, error) {
157 return []tools.Tool{
158 {
159 Name: ToolNameAddMemory,
160 Category: "memory",
161 Description: "Add a new memory to the database",
162 Parameters: tools.MustSchemaFor[AddMemoryArgs](),
163 OutputSchema: tools.MustSchemaFor[string](),
164 Handler: tools.NewHandler(t.handleAddMemory),
165 Annotations: tools.ToolAnnotations{
166 Title: "Add Memory",
167 },
168 },
169 {
170 Name: ToolNameGetMemories,
171 Category: "memory",
172 Description: "Retrieve all stored memories",
173 OutputSchema: tools.MustSchemaFor[[]database.UserMemory](),
174 Handler: tools.NewHandler(t.handleGetMemories),
175 Annotations: tools.ToolAnnotations{
176 ReadOnlyHint: true,
177 Title: "Get Memories",
178 },
179 },
180 {
181 Name: ToolNameDeleteMemory,
182 Category: "memory",
183 Description: "Delete a specific memory by ID",
184 Parameters: tools.MustSchemaFor[DeleteMemoryArgs](),
185 OutputSchema: tools.MustSchemaFor[string](),
186 Handler: tools.NewHandler(t.handleDeleteMemory),
187 Annotations: tools.ToolAnnotations{
188 Title: "Delete Memory",
189 },
190 },
191 {
192 Name: ToolNameSearchMemories,
193 Category: "memory",
194 Description: "Search memories by keywords and/or category. More efficient than retrieving all memories.",
195 Parameters: tools.MustSchemaFor[SearchMemoriesArgs](),
196 OutputSchema: tools.MustSchemaFor[[]database.UserMemory](),
197 Handler: tools.NewHandler(t.handleSearchMemories),
198 Annotations: tools.ToolAnnotations{
199 ReadOnlyHint: true,
200 Title: "Search Memories",
201 },
202 },
203 {
204 Name: ToolNameUpdateMemory,
205 Category: "memory",
206 Description: "Update an existing memory's content and/or category by ID",
207 Parameters: tools.MustSchemaFor[UpdateMemoryArgs](),
208 OutputSchema: tools.MustSchemaFor[string](),
209 Handler: tools.NewHandler(t.handleUpdateMemory),
210 Annotations: tools.ToolAnnotations{
211 Title: "Update Memory",
212 },
213 },

Callers

nothing calls this directly

Implementers 15

StartableToolSetpkg/tools/startable.go
fakeToolSetpkg/tools/named_test.go
stubDescriberpkg/tools/startable_test.go
stubToolSetpkg/tools/startable_test.go
flappyToolSetpkg/tools/startable_test.go
listFlappyToolSetpkg/tools/startable_test.go
reportingToolSetpkg/tools/startable_test.go
reportingStartOnlyToolSetpkg/tools/startable_test.go
recoveryFailingToolSetpkg/tools/startable_test.go
codeModeToolpkg/tools/codemode/codemode.go
testToolSetpkg/tools/codemode/codemode_test.go
Toolsetpkg/tools/a2a/a2a.go

Calls 2

NewHandlerFunction · 0.92
MustSchemaForFunction · 0.92

Tested by

no test coverage detected