agent-zero/prompts/agent.system.tool.document_query.md
Alessandro 6d29268cbd
Some checks are pending
Build And Publish Docker Images / plan (push) Waiting to run
Build And Publish Docker Images / build (push) Blocked by required conditions
refactor: align skills and tool guidance
Rename high-impact skills to task-oriented names and move plugin-owned skills into their owning plugin folders.\n\nAlign renamed skill frontmatter with the official SKILL.md standard by keeping trigger language in name/description metadata, replacing the old create-skill wizard with build-skill, and updating browser, A0 connector, computer-use, CLI setup, and scheduler skill references.\n\nTighten the recurring cross-provider guidance gaps surfaced by the evidence sweeps: memory requests now avoid promptinclude-file routing, scheduler prompts distinguish cron schedules from planned ISO dates, document questions prefer document_query, skills_tool search/read_file usage is clearer, normal notifications set info/priority 10, and local/host text editors preserve patch intent.\n\nUpdate regression tests for the renamed skills, plugin ownership, prompt budget reality, and standard frontmatter shape.
2026-05-10 07:13:14 +02:00

1.2 KiB

document_query

read local or remote documents or answer questions about them prefer this over text_editor when the user says "check/read this document" or asks a question about a document path/url, even for Markdown files args:

  • document: url path or list of them
  • queries: optional list of questions
  • query: optional single-question alias
  • without query or queries it returns document content
  • document accepts one path/url or a list for cross-document comparison
  • for local files use full paths; for web documents use full urls examples: 1 read a document
{
  "thoughts": ["I need the full contents of the report before answering."],
  "headline": "Loading report contents",
  "tool_name": "document_query",
  "tool_args": {
    "document": "https://example.com/report.pdf"
  }
}

2 compare documents with questions

{
  "thoughts": ["I need targeted answers across two documents."],
  "headline": "Comparing two documents",
  "tool_name": "document_query",
  "tool_args": {
    "document": [
      "https://example.com/report-one.pdf",
      "/path/to/report-two.pdf"
    ],
    "queries": [
      "Compare the main conclusions.",
      "What changed between the two versions?"
    ]
  }
}