MCPcopy Create free account
hub / github.com/microsoft/Webwright / screenshot

Function screenshot

assets/task_showcase/app.py:238–243  ·  view source on GitHub ↗
(short_id: str, filename: str)

Source from the content-addressed store, hash-verified

236
237@app.route("/task/<short_id>/screenshot/<path:filename>")
238def screenshot(short_id: str, filename: str):
239 folder = (TASKS_DIR / short_id / "screenshots").resolve()
240 target = (folder / filename).resolve()
241 if not target.exists():
242 abort(404)
243 return send_from_directory(folder, filename)
244
245
246def main():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected