|
| 1 | +package server |
| 2 | + |
| 3 | +// GetTagsArgs defines the input structure for get_tags tool |
| 4 | +type GetTagsArgs struct { |
| 5 | + Limit int `json:"limit,omitempty" jsonschema:"description:Maximum number of tags to return,default:50"` |
| 6 | +} |
| 7 | + |
| 8 | +// CreateBookmarkArgs defines the input structure for create_bookmark tool |
| 9 | +type CreateBookmarkArgs struct { |
| 10 | + URL string `json:"url" jsonschema:"description:URL to bookmark"` |
| 11 | + Title string `json:"title,omitempty" jsonschema:"description:Bookmark title"` |
| 12 | + Description string `json:"description,omitempty" jsonschema:"description:Bookmark description"` |
| 13 | + Tags []string `json:"tags,omitempty" jsonschema:"description:List of tags"` |
| 14 | +} |
| 15 | + |
| 16 | +// SearchBookmarksArgs defines the input structure for search_bookmarks tool |
| 17 | +type SearchBookmarksArgs struct { |
| 18 | + Query string `json:"query,omitempty" jsonschema:"description:Search query"` |
| 19 | + Limit int `json:"limit,omitempty" jsonschema:"description:Maximum number of results,default:20"` |
| 20 | +} |
| 21 | + |
| 22 | +// BookmarkResult defines the output structure for bookmark operations |
| 23 | +type BookmarkResult struct { |
| 24 | + ID int `json:"id"` |
| 25 | + URL string `json:"url"` |
| 26 | + Title string `json:"title"` |
| 27 | + Description string `json:"description,omitempty"` |
| 28 | + Tags []string `json:"tags,omitempty"` |
| 29 | + Success bool `json:"success"` |
| 30 | + Message string `json:"message,omitempty"` |
| 31 | +} |
| 32 | + |
| 33 | +// TagResult defines the output structure for tag operations |
| 34 | +type TagResult struct { |
| 35 | + ID int `json:"id"` |
| 36 | + Name string `json:"name"` |
| 37 | +} |
0 commit comments