Return a copy of *schema* with the optional json_output property added.
(schema: dict)
| 48 | |
| 49 | |
| 50 | def _with_json(schema: dict) -> dict: |
| 51 | """Return a copy of *schema* with the optional json_output property added.""" |
| 52 | props = dict(schema.get("properties", {})) |
| 53 | props.update(_JSON_PROP) |
| 54 | return {**schema, "properties": props} |
| 55 | |
| 56 | |
| 57 | @app.list_tools() |