feat: add Proofing Gallery tools - #226
Conversation
0b734fe to
c3974b5
Compare
|
DCO is now fixed with the corrected author address and a matching Signed-off-by trailer. The commit tree is unchanged from the previously green revision; the newly triggered Integration and REUSE workflows are currently awaiting maintainer approval for the fork run. |
|
Thank you for your contribution! Did you do some testing of these tools? As I'm not familiar with the app, could you give some example prompts that make sense to use? |
|
Thank you — I tightened the branch based on this feedback. The initial surface is now deliberately limited to four read-only tools:
Each tool now has a detailed purpose/usage description, Google-style argument and return documentation, and parameter-level Pydantic descriptions. I also verified the actual Context Agent MCP I tested this against an isolated Nextcloud 34 + AppAPI instance with the Context Agent 2.8.0 image and a local LLM2/Llama 3.1 8B model. The live prompt matrix selected only the intended tools:
The first live runs exposed two useful edge cases which are fixed in this revision: the model interpreted the generic word “customer” as a workflow purpose, and a readiness answer could imply that publishing had happened. A pre-validator now maps only the linguistic aliases Additional checks passed: 10 deterministic module contract tests, real MCP schema validation, Nextcloud API ACL/privacy/routing E2E coverage, Python compilation, Ruff, Black, and DCO. The stable Proofing Gallery OCS agent API remains unchanged; mutations and raw feedback are intentionally deferred from this PR. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Signed-off-by: soeren <soeren@sebfoto.de>
Signed-off-by: soeren <soeren@sebfoto.de>
491fe13 to
8ef9703
Compare
|
@janepie I have rebased the branch onto the current |
Adds four first-party, read-only Context Agent tools for the Proofing Gallery Nextcloud app:
list_proofing_galleriesget_proofing_gallerycheck_proofing_gallery_readinesssearch_proofing_gallery_mediaThe tools provide detailed model-facing descriptions and typed parameter schemas, preserve the invoking user's Nextcloud access controls, and use capability-based availability detection through Proofing Gallery agent API v2.
The returned data is deliberately privacy-bounded. Public-link passwords, share tokens, guest identities, arbitrary file reads, and internal index fields are omitted. Owner-controlled gallery titles, paths, and filenames are explicitly marked as untrusted user content. Readiness checks carry a machine-readable read-only marker so a model cannot imply that publishing occurred.
Mutations, raw feedback, reviews, and preset operations are intentionally deferred from this PR.
Validation:
tools/listschema validation