You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 60d3750
Browse filesBrowse the repository at this point in the historyBrowse files
return"Generate common code patterns from templates. Supports Go, Python, and TypeScript templates for handlers, tests, middleware, CRUD operations, and more."
"description": "Database dialect: one of sqlite, postgres, mysql. Defaults to sqlite.",
50
-
"enum": []string{"sqlite", "postgres", "mysql"},
51
-
},
52
-
"dsn": map[string]interface{}{
53
-
"type": "string",
54
-
"description": "Data source name / connection string. For sqlite "+
55
-
"this is the file path (or \":memory:\").",
56
-
},
57
-
"query": map[string]interface{}{
58
-
"type": "string",
59
-
"description": "The SQL statement to execute.",
60
-
},
61
-
"allow_write": map[string]interface{}{
62
-
"type": "boolean",
63
-
"description": "Allow destructive / mutating statements. When false "+
64
-
"(the default) only read-only queries are permitted.",
65
-
},
66
-
"max_rows": map[string]interface{}{
67
-
"type": "integer",
68
-
"description": "Maximum number of rows to return (default 100).",
69
-
},
52
+
// Schema returns the typed input schema. Parameters() delegates to it so the
53
+
// two cannot diverge.
54
+
func (SQLTool) Schema() ToolSchema {
55
+
returnToolSchema{
56
+
Type: "object",
57
+
Properties: map[string]SchemaProperty{
58
+
"driver": {Type: "string", Enum: []interface{}{"sqlite", "postgres", "mysql"}, Description: "Database dialect: one of sqlite, postgres, mysql. Defaults to sqlite."},
59
+
"dsn": {Type: "string", Description: `Data source name / connection string. For sqlite this is the file path (or ":memory:").`},
60
+
"query": {Type: "string", Description: "The SQL statement to execute."},
61
+
"allow_write": {Type: "boolean", Description: "Allow destructive / mutating statements. When false (the default) only read-only queries are permitted."},
62
+
"max_rows": {Type: "integer", Description: "Maximum number of rows to return (default 100)."},
return"Apply search-and-replace edits to a file. Provide one or more SEARCH/REPLACE blocks. Each block finds exact text and replaces it. The SEARCH text must match the file contents exactly, including whitespace."
0 commit comments