MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _api_read_pdf

Function _api_read_pdf

deployments/desktop/server.py:337–347  ·  view source on GitHub ↗
(_query_params: Dict[str, Any], body: Dict[str, Any])

Source from the content-addressed store, hash-verified

335 )
336
337
338def _api_read_pdf(_query_params: Dict[str, Any], body: Dict[str, Any]) -> Dict[str, Any]:
339 user_id = str(body.get("user_id") or "").strip()
340 if not user_id:
341 raise ValueError("user_id is required")
342 return agents.read_local_pdf(
343 user_id=user_id,
344 pdf_path=str(body.get("pdf_path") or "").strip(),
345 title=str(body.get("title") or "").strip(),
346 write_feishu=body.get("write_feishu"),
347 response_language=_response_language(body),
348 )
349
350

Callers

nothing calls this directly

Calls 2

_response_languageFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected