MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / _with_json

Function _with_json

openosint/mcp_server.py:50–54  ·  view source on GitHub ↗

Return a copy of *schema* with the optional json_output property added.

(schema: dict)

Source from the content-addressed store, hash-verified

48
49
50def _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()

Callers 1

list_toolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected