Sezzlee XML
v0.5.2Query local XML documents with XPath, paged and sandboxed to one folder.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_documents
List readable XML documents under the server root. Returns filePath values that other tools accept verbatim. The listing never parses a file, so a listed path is a candidate, not a guarantee of well-formed XML. totalExact distinguishes a complete total; scanTruncated is separate from the result page limit.
| Parameter | Type | Description |
|---|---|---|
maxResults | integer | Maximum returned files, default 50. Does not increase the traversal budget. |
pattern | string | Glob over the relative path, for example build/*.csproj. |
subdirectory | string | Folder under the root to list. |
describe_document
Summarise one XML document: the document element, every namespace with a stable alias, a bounded structure count, repeated-element candidates and an address read_node accepts. Repetition candidates are observations, not a schema. Counts carry an exact flag; a sampled count says so.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Document path relative to the root, as returned by list_documents. |
maxPaths | integer | Maximum repetition candidates and mixed-content examples, default 20. |
read_node
Read a bounded, ordered slice of one document as flat depth-first records. Every record carries nodeId, parentId and childIndex, so text, element, comment and processing-instruction order survives a page boundary. Values are returned as written: no trimming, no number or date conversion. An element held back by maxDepth is marked childrenOmitted and needs its own call with that address; the cursor never delivers it.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Document path relative to the root, as returned by list_documents. |
address | array | Segment path from the document element inclusive. Not an XPath expression; describe_document returns one you can pass straight back. |
cursor | string | nextCursor from a previous read_node response. Cannot be combined with address. |
maxDepth | integer | Levels below the addressed node to descend, default unlimited within the depth ceiling. 0 returns that node alone. |
maxNodes | integer | Maximum records in one page, default 50. The response byte budget may stop the page earlier. |
find_in_document
Find literal text in one document's text nodes and attribute values. Case-sensitive and literal: the query is never treated as a regular expression or a query language. totalMatches appears only when the scan finished; a stopped scan reports scannedCount and matchedSoFar instead.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Document path relative to the root, as returned by list_documents. |
query * | string | Literal text to look for. Case-sensitive; not a pattern. |
cursor | string | nextCursor from a previous find_in_document response. Cannot be combined with scopeAddress. |
matchMode | string | Substring match (default) or whole-value equality. |
maxResults | integer | Maximum matches in one page, default 50. |
scopeAddress | array | Restrict the scan to this element's subtree. |
searchIn | string | Search text nodes (default), attribute values, or both. With both, a text hit and an attribute hit on the same element are reported separately. |
select_xpath
Evaluate one XPath 1.0 expression against a document. The expression is passed to the engine exactly as written: no rewriting, no namespace guessing, no extension functions, and nothing from XPath 2.0 or later. resultType separates a node-set from a string, number or boolean, so an empty node-set, an empty string, false and 0 all survive as themselves; a number carries numberKind so NaN and infinity are never a silent null. Node-set members are addressed where an address exists; a prolog comment and a namespace node carry unaddressable instead. Evaluation may materialise the whole node-set, so…
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Document path relative to the root, as returned by list_documents. |
xpath * | string | XPath 1.0 expression. |
cursor | string | nextCursor from a previous select_xpath response. The expression is evaluated again, so continuing costs what the first call cost. |
maxResults | integer | Maximum node-set members in one page, default 50. The response byte budget may stop the page earlier. Ignored for a string, number or boolean result. |
namespaces | array | Prefix bindings for the expression. A prefix used but not bound is an error; the expression is never rewritten to guess one. |
project_records
Turn a repeated element into rows and named columns. Values are returned as written: no trimming, no number or date conversion. A cell says which of four things happened: present, empty when the value exists and is the empty string, missing when the address matches nothing, and multiple when several nodes match and no policy chose one. Rows carry occurrence rather than a repeated address; a row's canonical address is itemParentAddress plus itemName at that occurrence.
| Parameter | Type | Description |
|---|---|---|
columns * | array | Columns to read from each record. where, groupBy and metrics name a column by its label. |
filePath * | string | Document path relative to the root, as returned by list_documents. |
itemAddress * | object | The record set: singular ancestors plus one repeated child name. This is not an XPath expression and the wildcard applies to the repeated child only. |
caseSensitive | boolean | Case-sensitive comparison, default true. XML names and values are case-sensitive; false lowercases both sides and does not fold accents. |
cursor | string | nextCursor from a previous project_records response. Cannot be combined with different options. |
match | string | Combine conditions with all (default) or any. |
maxRows | integer | Maximum rows in one page, default 50. The response byte budget may stop the page earlier. |
where | array | Row filter over declared columns. Comparisons are textual: a multiple cell never matches one, and no value is converted to a number. |
aggregate_document
Count and summarise a repeated element in one call, instead of paging the records. count needs no column and is always available. sum, avg, min and max require numericMode: binary64, which is an explicit acceptance that values become binary64 doubles: a value with more digits than that holds is refused rather than quietly changed, and values that cannot be represented exactly are counted in rounded. groupCount and matchedItems cover the whole scan even when maxGroups cuts the returned groups.
| Parameter | Type | Description |
|---|---|---|
columns * | array | Columns to read from each record. where, groupBy and metrics name a column by its label. |
filePath * | string | Document path relative to the root, as returned by list_documents. |
itemAddress * | object | The record set: singular ancestors plus one repeated child name. This is not an XPath expression and the wildcard applies to the repeated child only. |
metrics * | array | Values to compute. Each metric becomes one output column after the groupBy columns. |
caseSensitive | boolean | Case-sensitive comparison, default true. XML names and values are case-sensitive; false lowercases both sides and does not fold accents. |
descending | boolean | Descending order, default false. |
groupBy | array | Labels of declared columns to group by. Omit for one whole-set total. |
match | string | Combine conditions with all (default) or any. |
maxGroups | integer | Maximum groups returned, default 50. groupCount still reports every group the scan found. |
numericMode | string | off (default) offers only the counting metrics. binary64 enables sum, avg, min and max with double precision. |
orderBy | string | Order groups by group key (default) or by one metric. |
orderByMetric | integer | One-based index into metrics, default 1. |
where | array | Row filter over declared columns. Comparisons are textual: a multiple cell never matches one, and no value is converted to a number. |