xml_structure
Analyze XML file structure quickly by extracting element counts, attribute usage, namespaces, and hierarchy details without full file processing. Configure depth and byte limits for efficient handling of large files.
Instructions
Analyze XML file structure without reading the entire file. Returns statistical information about element counts, attribute usage, namespaces, and hierarchical structure. Useful for understanding the structure of large XML files before performing detailed queries. Requires maxBytes
(default 10KB) and maxDepth
(default 2) parameters. The path must be within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeAttributes | No | Whether to include attribute information | |
maxBytes | Yes | Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB. | |
maxDepth | Yes | How deep to analyze the hierarchy. Must be a positive integer. Handler default: 2. | |
path | Yes | Path to the XML file to analyze |