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
description="Newly added resources are proactively retrieved by the CDN and stored on its cache nodes in advance. Users simply submit the resource URLs, and the CDN automatically triggers the prefetch process.",
description="This function marks resources cached on CDN nodes as expired. When users access these resources again, the CDN nodes will fetch the latest version from the origin server and store them anew.",
description="""Image scaling tool that resizes images based on a percentage and returns information about the scaled image.
22
22
The information includes the object_url of the scaled image, which users can directly use for HTTP GET requests to retrieve the image content or open in a browser to view the file.
23
23
The image must be stored in a Qiniu Cloud Bucket.
@@ -70,7 +70,7 @@ def image_scale_by_percent(
70
70
71
71
@tools.tool_meta(
72
72
types.Tool(
73
-
name="ImageScaleBySize",
73
+
name="image_scale_by_size",
74
74
description="""Image scaling tool that resizes images based on a specified width or height and returns information about the scaled image.
75
75
The information includes the object_url of the scaled image, which users can directly use for HTTP GET requests to retrieve the image content or open in a browser to view the file.
76
76
The image must be stored in a Qiniu Cloud Bucket.
@@ -134,7 +134,7 @@ def image_scale_by_size(
134
134
135
135
@tools.tool_meta(
136
136
types.Tool(
137
-
name="ImageRoundCorner",
137
+
name="image_round_corner",
138
138
description="""Image rounded corner tool that processes images based on width, height, and corner radius, returning information about the processed image.
139
139
If only radius_x or radius_y is set, the other parameter will be assigned the same value, meaning horizontal and vertical parameters will be identical.
140
140
The information includes the object_url of the processed image, which users can directly use for HTTP GET requests to retrieve the image content or open in a browser to view the file.
description="List objects in Qiniu Cloud, list a part each time, you can set start_after to continue listing, when the number of listed objects is less than max_keys, it means that all files are listed. start_after can be the key of the last file in the previous listing.",
"description": "The key under which a file is saved in Qiniu Cloud Storage serves as the unique identifier for the file within that space, typically using the filename.",
125
+
},
126
+
"data": {
127
+
"type": "string",
128
+
"description": "The data to upload.",
129
+
},
130
+
"overwrite": {
131
+
"type": "boolean",
132
+
"description": "Whether to overwrite the existing object if it already exists.",
description="Upload a local file to Qiniu bucket.",
147
+
inputSchema={
148
+
"type": "object",
149
+
"properties": {
150
+
"bucket": {
151
+
"type": "string",
152
+
"description": _BUCKET_DESC,
153
+
},
154
+
"key": {
155
+
"type": "string",
156
+
"description": "The key under which a file is saved in Qiniu Cloud Storage serves as the unique identifier for the file within that space, typically using the filename.",
157
+
},
158
+
"file_path": {
159
+
"type": "string",
160
+
"description": "The file path of file to upload.",
161
+
},
162
+
"overwrite": {
163
+
"type": "boolean",
164
+
"description": "Whether to overwrite the existing object if it already exists.",
description="Fetch a http object to Qiniu bucket.",
179
+
inputSchema={
180
+
"type": "object",
181
+
"properties": {
182
+
"bucket": {
183
+
"type": "string",
184
+
"description": _BUCKET_DESC,
185
+
},
186
+
"key": {
187
+
"type": "string",
188
+
"description": "The key under which a file is saved in Qiniu Cloud Storage serves as the unique identifier for the file within that space, typically using the filename.",
description="Get the file download URL, and note that the Bucket where the file is located must be bound to a domain name. If using Qiniu Cloud test domain, HTTPS access will not be available, and users need to make adjustments for this themselves.",
0 commit comments