-
-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathmcp.json
More file actions
174 lines (174 loc) · 5.84 KB
/
Copy pathmcp.json
File metadata and controls
174 lines (174 loc) · 5.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"jsonrpc": "2.0",
"result": {
"tools": [
{
"name": "find_media",
"description": "Detect media content (videos, audio, images) from web pages. Can scan existing tabs or open new tabs and monitor for media in real-time.",
"inputSchema": {
"type": "object",
"properties": {
"cmd": {
"type": "string",
"enum": ["find-media"],
"description": "Must be 'find-media'"
},
"tabId": {
"type": "integer",
"description": "ID of an existing tab to scan for media",
"optional": true
},
"query": {
"type": "object",
"description": "chrome.tabs.query argument to find or open a tab (e.g., {url: 'https://example.com'})",
"optional": true,
"additionalProperties": true
},
"open": {
"type": "boolean",
"description": "When true and query is provided, opens a new tab and streams media detections in real-time",
"optional": true
}
},
"required": ["cmd"]
},
"outputSchema": {
"type": "array",
"description": "Array containing media detection results or errors",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"description": "Media detected response",
"properties": {
"cmd": {
"type": "string",
"enum": ["media-detected"],
"description": "Command identifier for media detection result"
},
"value": {
"type": "object",
"description": "Detected media information",
"properties": {
"url": {
"type": "string",
"description": "Direct URL to the media file"
},
"initiator": {
"type": "string",
"description": "Source URL that triggered the media load"
}
},
"required": ["url"],
"additionalProperties": true
}
},
"required": ["cmd", "value"]
},
{
"type": "object",
"description": "Error response",
"properties": {
"type": {
"type": "string",
"enum": ["error"],
"description": "Indicates this is an error object",
"optional": true
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"required": ["message"]
}
]
}
}
},
{
"name": "download_media",
"description": "Queue media files for download. Opens the downloader interface with the specified media items already added.",
"inputSchema": {
"type": "object",
"properties": {
"cmd": {
"type": "string",
"enum": ["download-media"],
"description": "Must be 'download-media'"
},
"jobs": {
"type": "array",
"description": "Array of media items to download. Each item can be an object {url, initiator} or a URL string.",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"description": "Media job with full context",
"properties": {
"url": {
"type": "string",
"description": "Direct URL to the media file"
},
"initiator": {
"type": "string",
"description": "Source URL that triggered the media load",
"optional": true
}
},
"required": ["url"]
},
{
"type": "string",
"description": "Media URL string (uses current tab as initiator)"
}
]
}
}
},
"required": ["cmd", "jobs"]
},
"outputSchema": {
"type": "array",
"description": "Array containing confirmation or error",
"minItems": 1,
"items": {
"oneOf": [
{
"type": "object",
"description": "Success confirmation",
"properties": {
"cmd": {
"type": "string",
"enum": ["queued"],
"description": "Indicates media was queued for download"
}
},
"required": ["cmd"]
},
{
"type": "object",
"description": "Error response",
"properties": {
"type": {
"type": "string",
"enum": ["error"],
"description": "Indicates this is an error object",
"optional": true
},
"message": {
"type": "string",
"description": "Human-readable error message"
}
},
"required": ["message"]
}
]
}
}
}
]
}
}