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
The following code is the `getWeatherWidget` handler:
172
172
173
173
```typescript
174
174
exportasyncfunction getWeatherWidget(
@@ -352,7 +352,7 @@ The following MCP resource trigger properties are supported on `mcp_resource_tri
352
352
| **description** | A description of the MCP resource exposed by the function endpoint. |
353
353
| **mime_type** | The MIME type of the content returned by the resource. For example, `text/html;profile=mcp-app` for MCP App UI resources, `text/plain` for plain text. |
354
354
| **size** | The expected size of the resource content in bytes, if known. |
355
-
| **metadata** | A JSON-serialized string of additional metadata for the resource. |
355
+
| **metadata** | A JSON-serialized string of extra metadata for the resource. |
356
356
357
357
> [!NOTE]
358
358
> Decorators are only available in the Python v2 programming model.
@@ -372,7 +372,7 @@ Define the trigger's binding options in your code. The trigger supports the foll
372
372
| **description** | A description of the MCP resource that the function endpoint exposes. |
373
373
| **mimeType** | The MIME type of the content returned by the resource. For example, `text/html;profile=mcp-app`. |
374
374
| **size** | The expected size of the resource content in bytes, if known. |
375
-
| **metadata** | A JSON-serialized string of additional metadata for the resource. |
375
+
| **metadata** | A JSON-serialized string of extra metadata for the resource. |
376
376
| **handler** | The method that contains the actual function code. |
377
377
378
378
::: zone-end
@@ -440,7 +440,7 @@ Use the `McpMetadata` attribute to provide extra metadata for resources. MCP cli
440
440
441
441
::: zone pivot="programming-language-python"
442
442
443
-
Use the `metadata` parameter on the `mcp_resource_trigger` decorator to provide extra metadata for resources. This metadata is a JSON-serialized string included in the `meta` field of each resource when clients call `resources/list`. It can affect how the resource content is displayed or processed.
443
+
To provide extra metadata for resources, use the `metadata` parameter on the `mcp_resource_trigger` decorator. This metadata is a JSON-serialized string included in the `meta` field of each resource when clients call `resources/list`. It can affect how the resource content is displayed or processed.
0 commit comments