1. Conduid
  2. Files
  3. HermesOffice
MCP server · Files

HermesOffice

Free, open-source AI Office suite (Word, Excel, PowerPoint, PDF, Markdown) — macOS build, one-click install

78Good

Scored 17 hours ago · breakdown

About HermesOffice

HermesOffice is an MCP server published by criptogus in the Files category: free, open-source AI Office suite (Word, Excel, PowerPoint, PDF, Markdown) — macOS build, one-click install. Conduid read 81 tools from its source: add_form_mark, add_note, aggregate_range, apply_ops, apply_sheet_ops, apply_slide_ops and 75 more. No package is published for it, so it installs from a source checkout.

The repository has 642 stars and 89 forks, is licensed Apache-2.0, and its last commit was on 11 Nov 2026. The latest release is ho-v0.9.0 (25 Oct 2026): HermesOffice 0.9.0 Incorpora a sincronização revisada do PR #67, preservando as customizações do HermesOffice e as sessões de IA por documento. It follows ho-v0.8.6 (24 Oct 2026), and the 5 most recent releases go back to ho-v0.8.3 (25 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include ai-native, docx, electron, hermes, local-first and office-suite.

Install

From source
git clone https://github.com/criptogus/HermesOffice

Tools (81)

add_form_markPlace a check mark or cross on a page (drawn as new content; takes effect on save). Use it to tick check boxes printed on non-interactive forms — interactive check boxes are set with apply_ops setFormValue instead. Position exactly like insert_text: anchor_text (verbatim fragment, e.g. the label next to the box) plus placement, with the mark centered against that side of the anchor, or x/y as the TOP-LEFT corner of the mark in points from the page top-left as displayed.
ParameterTypeDescription
anchor_textstringVerbatim text fragment on the page (e.g. the box label) to position the mark against
kind *stringMark to draw
page *integerPage number (1-based)
placementstringWhich side of anchor_text the mark goes on; defaults to right
sizenumberSide of the square mark in points; defaults to ${STATIC_FORM_MARK_SIZE}
xnumberLeft edge of the mark in points from the page left edge
ynumberTop edge of the mark in points from the page TOP edge
add_noteAdd a sticky-note comment to a page (takes effect on save; authored as "AI Assistant"). Anchor it with anchor_text (a verbatim fragment on the page — the note pin lands at its end) or explicit x/y in points from the page top-left as displayed.
ParameterTypeDescription
anchor_textstringVerbatim text fragment on the page the note refers to
colorstringNote pin color as #RRGGBB hex; omit to use the user's current draw color
page *integerPage number (1-based)
text *stringNote contents
xnumberPin x in points from the page left edge
ynumberPin y in points from the page TOP edge
aggregate_rangeCompute statistics for a range without reading or modifying it cell by cell: non-empty count, distinct-value count, numeric sum/average/min/max, and the most frequent values. Handles very large ranges (up to 1,000,000 cells) efficiently. ALWAYS use this for questions like "how many distinct suppliers/customers", value distributions, or column totals on large sheets — never loop read_range over big data and never write COUNTIF/SUMPRODUCT distinct-count formulas (they are rejected as too expensive). Aggregate one column at a time for meaningful distinct counts.
ParameterTypeDescription
range *stringRange like "D2:D88588" (typically one column, excluding the header)
sheetIdstringTarget sheet id; the active sheet when omitted
topValuesnumberHow many most-frequent values to return (0-50, default 10)
apply_opsApply formatting commands to the visible document (font, paragraph format, heading level, find/replace, list/indent, etc.). `ops` is the same batch format the built-in AI editor accepts; the whole batch is atomic. Use read_document for block indexes.
ParameterTypeDescription
dryRunbooleanvalidate and plan the batch without changing the document
ops *arrayarray of op objects
apply_sheet_opsApply workbook DSL operations to the visible spreadsheet (the same vocabulary the CLI and the built-in AI use). Common ops: set_cell, set_formula, clear_cell, set_range, clear_range, fill_range, copy_range, convert_to_values, insert_rows, delete_rows, insert_cols, delete_cols, add_sheet, delete_sheet, add_chart, add_table, set_filter, set_hyperlink, add_conditional_format, set_data_validation, set_note. Address a worksheet by NAME with `sheet` (also `sourceSheet`/`targetSheet`) — the CLI's stable vocabulary — or with `sheetId` from read_sheet; a name that is not in the workbook is rejected before anything applies. The target sheet is brought into view so the user sees the edit. Addresses are A1. One batch applies as one undo step; a failed batch changes nothing.
ParameterTypeDescription
dryRunbooleanplan the batch and report what would change, without modifying the grid
ops *arrayarray of workbook DSL op objects; each op addresses its worksheet with sheet (a name) or sheetId
apply_slide_opsApply slide editing ops to the visible presentation as one transaction (atomic by default, plan-validated with snapshot rollback; per_op isolation skips failures instead). Ops address {slide, el} and use document-space EMU. Common ops: setText, setFont, setParagraphFormat, addElement (textbox/shapes/lines), addTable, addChart, addBlankSlide, deleteSlide, moveSlide, duplicateSlide, deleteElement, setFill, setStroke, setTransform, setBackground, applyTheme, findReplace, setTableCell, tableStructure, setTransition, setNotes. A failing atomic batch changes nothing — fix the op named in the error and resend the whole batch. Use read_deck for ids and geometry first.
ParameterTypeDescription
dryRunbooleanvalidate and plan the batch without changing the deck
isolationstringatomic (default) applies all-or-nothing; per_op applies independently
ops *arrayarray of op objects (at most 50 per transaction)
ask_clarification[Before creating a new page] Show a questionnaire card so the user makes the key choices (audience, scenario, tone, focus, length). Ask 2–4 questions that are real trade-offs for THIS topic, ≤5 options each; the card adds "decide for me" and a free-text option itself. Skip it when the request already answers these. Wait for the answers, then call plan_page. Do not repeat the questions in your reply.
ParameterTypeDescription
questions *array
create_documentCreate a NEW standalone file in the default save folder and open it in a new tab; the current PDF is not modified. Use when the user asks to put content (a summary, an extraction, an analysis result) into a new/separate document. type 'pdf' (default) and 'docx' take simple HTML in content (<h1>-<h6>, <p>, <ul>/<ol>/<li>, <table>, <pre>, <blockquote>; inline <strong>/<em>/<u>/<s>); type 'md' takes Markdown source; type 'html' takes a complete standalone HTML page (opens in the HTML editor). Images are not supported in the new file's content.
ParameterTypeDescription
content *stringfull document content: simple HTML for pdf/docx, Markdown for md
title *stringdocument title, used as the file name
typestringtarget file type (default 'pdf')
create_docxCreate a Word .docx file from content and save it to disk without opening the app UI. Content is Markdown (headings, lists, bold/italic, links, code blocks, tables) or a restricted-HTML fragment (format:"html"), converted by the same docx engine the app and the genoffice CLI use. Returns the absolute path of the written file.
ParameterTypeDescription
content *stringMarkdown source (default) or a restricted-HTML fragment
formatstringcontent format; default markdown
overwritebooleanallow replacing an existing file at `path`; default false
pathstringabsolute output path; default is a new file in the default save folder
title *stringdocument title, used as the file name
create_pptxCreate a PowerPoint .pptx file from an outline and save it to disk without opening the app UI. By default `outline` is Markdown where `# Title` starts each slide, `## text` adds a bold line, `- text` a bullet (indent two spaces per level) and `1. text` a numbered bullet. Use format:"json" to pass {"slides":[{"title":"...","bullets":["...","...",{"text":"...","level":1}]}]} instead. Returns the absolute path of the written file.
ParameterTypeDescription
formatstringoutline format; default markdown
outline *stringMarkdown outline (default) or a JSON string of {"slides":[...]} when format is "json"
overwritebooleanallow replacing an existing file at `path`; default false
pathstringabsolute output path; default is a new file in the default save folder
title *stringpresentation title, used as the file name
create_sessionOpen a new empty file in a visible HermesOffice tab and start an editing session; family picks the editor: ${listing}.Then add content with that family's tools (docs: insert_content / replace_blocks / apply_ops; slides: apply_slide_ops; sheets: apply_sheet_ops) and finish with save_session. One session is active at a time — a new create_session replaces it. The user watches each step in the app.
ParameterTypeDescription
family *stringwhich editor to open
create_xlsxCreate an Excel .xlsx file and save it to disk without opening the app UI. `data` is a 2D array of rows; numbers become numeric cells, and a string starting with "=" becomes a formula (the genoffice CLI evaluates it and stores the cached value). Returns the absolute path of the written file.
ParameterTypeDescription
data *arrayrows of cell values; row 0 becomes spreadsheet row 1
overwritebooleanallow replacing an existing file at `path`; default false
pathstringabsolute output path; default is a new file in the default save folder
sheetNamestringname of the single sheet; default Sheet1
title *stringworkbook title, used as the file name
crop_imageCrop an existing page image: trims the given margins off the picture and shrinks its footprint on the page to the kept region (the kept pixels stay at their current size and place; z-order kept; takes effect on save). Each inset is a fraction 0-1 of the image's current displayed width (left/right) or height (top/bottom) as listed by list_page_images, measured inward from that edge; omitted insets are 0. Example: left 0.25 removes the left quarter. Call list_page_images first; image_number refers to that listing.
ParameterTypeDescription
bottomnumberFraction of the height to trim from the bottom edge (0-1)
image_number *integerImage number from list_page_images (1-based, per page)
leftnumberFraction of the width to trim from the left edge (0-1)
page *integerPage number (1-based)
rightnumberFraction of the width to trim from the right edge (0-1)
topnumberFraction of the height to trim from the top edge (0-1)
crop_pagesCrop pages to a sub-rectangle of the displayed page. left/top/right/bottom are fractions 0-1 of the page width/height describing the rectangle that is KEPT (left=0, top=0, right=1, bottom=1 is the whole page and is rejected); e.g. left 0.1, right 0.9 trims 10% off each side. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved and the file on disk is rewritten, which cannot be undone. Afterwards the document reloads and page numbers change; re-read (search_text/read_pages) before any further edit. Prefer apply_ops (deletePage / setPageOrder / rotatePages) when it suffices.
ParameterTypeDescription
bottom *numberBottom edge of the kept area (0-1)
left *numberLeft edge of the kept area (0-1)
pages *string"all" or original page numbers as a range string, e.g. "1-3,5"
right *numberRight edge of the kept area (0-1)
top *numberTop edge of the kept area (0-1)
delete_imageDelete an existing page image (takes effect on save; the user can undo before saving). Call list_page_images first; image_number refers to that listing.
ParameterTypeDescription
image_number *integerImage number from list_page_images (1-based, per page)
page *integerPage number (1-based)
delete_inserted_textRemove an unsaved inserted text block (same as the user pressing Delete on it). Only pending inserts can be removed this way; to delete saved text use edit_text with an empty new_text.
ParameterTypeDescription
id *stringInserted text id from list_inserted_text
delete_markupRemove text markups (highlight / underline / strikeout) from a page, whether saved in the file or added this session (takes effect on save). Call read_annotations first: it lists every markup with its id. Pass markup_ids to remove specific ones, or omit it to remove all markups on the page; type narrows either form to one kind.
ParameterTypeDescription
markup_idsarrayMarkup ids from read_annotations; omit to target every markup on the page
page *integerPage number (1-based)
typestringOnly remove markups of this kind
delete_noteDelete a sticky-note thread (the root comment and all of its replies) from a page (takes effect on save). note_id is the thread id shown by read_annotations. Only delete notes the user explicitly asked to remove.
ParameterTypeDescription
note_id *stringThread id from read_annotations (e.g. "S12")
page *integerPage number (1-based)
edit_blockRewrite a whole paragraph on a page (rewrites the PDF content; takes effect on save). The paragraph is located by paragraph_text — a distinctive verbatim fragment of it. The ENTIRE paragraph is replaced by new_text, which is re-wrapped automatically within the paragraph's original width (the block grows downward when the text is longer). An empty new_text deletes the whole paragraph (its area stays blank; content below does not move up). Use edit_text instead to change a few words without reflowing.
ParameterTypeDescription
alignstringAlignment of the reflowed lines within the paragraph's original width; omit to keep the paragraph's current alignment
boldbooleanSet the paragraph in the bold variant
colorstringNew text color as #RRGGBB hex; omit to keep the original color
fontstringFont for the replacement; ignored when the face lacks glyphs for it (e.g. CJK). Omit for automatic
font_sizenumberNew font size in PDF points; omit to keep the original size
italicbooleanSet the paragraph in the italic variant
new_text *stringFull replacement for the paragraph; "\n" separates paragraphs within the block; "" deletes the paragraph
page *integerPage number (1-based)
paragraph_text *stringVerbatim fragment identifying the paragraph; must match exactly one paragraph on the page
edit_inserted_textChange an unsaved inserted text block (same as the user double-clicking it): new text, font size, color, or alignment; omitted fields keep their value. The block stays anchored where it is. Get ids from list_inserted_text or the insert_text output. For text that is already saved use edit_text instead.
ParameterTypeDescription
alignstringNew line alignment
colorstringNew text color as #RRGGBB hex
font_sizenumberNew font size in PDF points
id *stringInserted text id (e.g. "Td3k9a1")
textstringReplacement text; "\n" separates lines
edit_noteReplace the text of an existing sticky-note comment — a thread root or a reply — keeping its author, position, and thread (takes effect on save). note_id is a note or reply id from read_annotations. Only edit notes the user explicitly asked to change.
ParameterTypeDescription
note_id *stringNote or reply id from read_annotations (e.g. "S12", "Pd3k")
page *integerPage number (1-based) the note is on
text *stringNew note contents (replaces the old text)
edit_textReplace a short text run on a page (rewrites the PDF content; takes effect on save). old_text must be a verbatim fragment that actually exists on that page (confirm with read_pages or search_text first); only the first occurrence on the page is edited unless occurrence is given. The replacement is drawn from the original position without reflowing the page, so keep it close to the original length. An empty new_text deletes the run outright (the space it occupied stays blank; nothing moves up) — never substitute a placeholder such as "." for deletion. Alignment cannot be changed here (a run keeps its position); use edit_block with align for that.
ParameterTypeDescription
boldbooleanSet the replacement in the bold variant
colorstringNew text color as #RRGGBB hex; omit to keep the original color
fontstringFont for the replacement; ignored when the face lacks glyphs for it (e.g. CJK). Omit for automatic
font_sizenumberNew font size in PDF points; omit to keep the original size
italicbooleanSet the replacement in the italic variant
new_text *stringReplacement text; "\n" splits it into stacked lines; "" deletes the run
occurrenceintegerWhich occurrence of old_text on the page to edit (1-based); defaults to 1
old_text *stringVerbatim text fragment currently on the page
page *integerPage number (1-based)
extract_pagesCopy the given pages into a new PDF. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved to disk (cannot be undone) and the result is written as a NEW file in the default save folder and opened in a new tab; the current document keeps its pages.
ParameterTypeDescription
pages *stringOriginal page numbers as a range string, e.g. "1-3,5"
find_cellsSearch the whole workbook (or one sheet) for cells whose value or formula matches a query; returns Sheet!Address with the cell content. Plain text matches as a case-insensitive substring; regex=true treats the query as a case-insensitive JavaScript regex; errors_only=true finds formula error cells (#REF!, #DIV/0!, #VALUE!, #NAME?, #N/A, #NUM!, #NULL!) and query may then be omitted. For formula cells the matched value is the last calculated value. Prefer this over paging read_range when locating data or auditing errors.
ParameterTypeDescription
errors_onlybooleanFind cells whose calculated value is a formula error (default false)
look_instringWhat to match against (default both)
max_resultsintegerMaximum matches returned, default ${DEFAULT_FIND_RESULTS}, max ${MAX_FIND_RESULTS}
querystringText or regex to find; may be omitted only when errors_only=true
regexbooleanTreat query as a JavaScript regex (default false)
sheetIdstringRestrict the search to one sheet; searches every sheet when omitted
flip_imageMirror an existing page image horizontally (left-right as displayed) or vertically (top-bottom as displayed) in place; footprint and z-order kept (takes effect on save). Call list_page_images first; image_number refers to that listing.
ParameterTypeDescription
axis *string'horizontal' mirrors left-right, 'vertical' mirrors top-bottom, both as the page is displayed
image_number *integerImage number from list_page_images (1-based, per page)
page *integerPage number (1-based)
generate_imageGenerate an illustration with AI from a text prompt and insert it into the document after a top-level block. For illustration/diagram-style art that image_search cannot find, or when the user asks to generate/draw a picture. The document must have been saved to disk at least once.
ParameterTypeDescription
afterIndexinteger0-based block index to insert after; -1 = document start. Defaults to the end of the document.
altstringAlt text describing the image
aspectRatiostringOptional aspect ratio like "16:9", "1:1", "4:3"
prompt *stringImage description in English, concrete and visual
get_app_infoReport HermesOffice version, the default save folder, the document formats this server can generate, and the editor's full open/save/export format matrix per family.
get_document_contextRefresh the document overview: a numbered list of top-level blocks (index | type | preview) plus the current selection. Call this before index-based edits when in doubt.
get_outlineStructural outline of the document: one line per element with its line range, stable element id (sid), tag, id/class and a text preview. Use it to find where to read or edit. Narrow with from_sid / depth for large documents.
ParameterTypeDescription
depthintegerNesting depth to show (default 3)
from_sidintegerOnly this element and its subtree
get_workbook_contextGet a workbook overview: all sheets (id/name/data-extent rows-columns), active sheet, current selection, known non-empty cell addresses. For data-size questions (how many rows / how much data), answer from the data extent here instead of reading block by block; use read_range or read_cells when concrete values are needed.
goto_pageScroll the reading view to the given page so the user can see it.
ParameterTypeDescription
page *integerPage number (1-based)
image_searchSearch for images. Returns a list of imageUrl entries; after picking one, insert it into the document with insert_image.
ParameterTypeDescription
maxResultsintegerMaximum number of results, default 8
query *stringSearch keywords
insert_blank_pageInsert a blank page (same size as its neighbor) after the given page; after_page 0 inserts it as the first page. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved and the file on disk is rewritten, which cannot be undone. Afterwards the document reloads and page numbers change; re-read (search_text/read_pages) before any further edit. Prefer apply_ops (deletePage / setPageOrder / rotatePages) when it suffices.
ParameterTypeDescription
after_page *integerOriginal page number to insert after (1-based); 0 = insert as the first page
insert_contentInsert content into the visible document as HTML (headings, paragraphs, bold/italic, lists, tables, links). Appends at the end unless afterBlockIndex is given.
ParameterTypeDescription
afterBlockIndexnumberinsert after this block index; default appends at the end
html *stringrestricted HTML fragment to insert
insert_imageDownload a direct image link (an imageUrl from image_search) and insert it into the document after a top-level block. The image file is saved next to the document, so the document must have been saved to disk at least once.
ParameterTypeDescription
afterIndexinteger0-based block index to insert after; -1 = document start. Defaults to the end of the document.
altstringAlt text describing the image
url *stringDirect image URL (http/https)
insert_textAdd NEW text to a page (drawn as new content on top of the page; takes effect on save). Use this for blank pages, empty areas, and filling in non-interactive form blanks — to change text that already exists, use edit_text or edit_block instead. Position with anchor_text (a verbatim fragment on the page, e.g. a form label) plus placement, or with x/y as the TOP-LEFT corner of the text block in points measured from the page top-left as displayed; with neither, the block is centered horizontally near the top. "\n" starts a new line; pass max_width to auto-wrap long paragraphs within that width.
ParameterTypeDescription
alignstringLine alignment within max_width (or the widest line); defaults to left
anchor_textstringVerbatim text fragment on the page (e.g. a form label) to position the new text against
boldbooleanSet the text in the bold variant
colorstringText color as #RRGGBB hex; defaults to black
fontstringFont for the text; ignored when the face lacks glyphs for it (e.g. CJK). Omit for automatic
font_sizenumberFont size in PDF points; defaults to 14
italicbooleanSet the text in the italic variant
max_widthnumberWrap width in points: paragraphs are re-wrapped to fit; omit to keep the given line breaks as-is
page *integerPage number (1-based)
placementstringWhich side of anchor_text to place the text on; defaults to right
text *stringText to insert; "\n" separates lines/paragraphs
xnumberLeft edge of the text block in points from the page left edge
ynumberTop edge of the text block in points from the page TOP edge
list_form_fieldsList all form fields in the document (name/type/current value/options/page). Must be called before filling forms to learn the fields.
list_inserted_textList the text blocks added with insert_text this session that are still unsaved: id, page, top-left position in points as displayed, font size, and a text preview. Their ids feed edit_inserted_text / move_inserted_text / delete_inserted_text. Once the user saves, inserted text becomes page content and is no longer listed — change it with edit_text then.
ParameterTypeDescription
pageintegerOnly list blocks on this page (1-based); omit for all
list_page_imagesList the images embedded in the page content: per-page image numbers with position/size in points as displayed (x from the left edge, y from the page TOP, page rotation applied). Call this before transform_image or delete_image. Images inserted in this session but not yet saved are not listed.
ParameterTypeDescription
pageintegerPage number (1-based); omit to list images on every page
load_guideLoad operation guide documents into context (field definitions, conventions, common mistakes). Except for the most basic single-cell reads/writes, load the relevant guides before generating propose_operations; several can be loaded at once. Available guides: ${guideCatalogSummary()}
ParameterTypeDescription
guides *arrayGuide names to load, e.g. ["writing","formatting"]
markup_textAdd a markup (highlight/underline/strikeout) to a text passage on the given page. text must be a verbatim fragment that actually exists on that page (confirm with read_pages or search_text first); by default only the first occurrence is marked, all=true marks every occurrence on that page.
ParameterTypeDescription
allbooleanWhether to mark every occurrence on the page; defaults to false
colorstringMarkup color as #RRGGBB hex; omit to use the user's current color for the type
page *integerPage number (1-based)
text *stringVerbatim text fragment from the page
type *stringMarkup type
merge_pagesN-up imposition: place per_sheet consecutive pages onto one sheet (e.g. 2 = two pages side by side). IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved to disk (cannot be undone) and the result is written as a NEW file in the default save folder and opened in a new tab; the current document keeps its pages.
ParameterTypeDescription
directionstringFill order: horizontal = left to right then down, vertical = top to bottom then right (default)
per_sheet *integerPages per sheet, 2-16
separatorbooleanDraw hairlines between the placed pages (default false)
move_inserted_textMove an unsaved inserted text block (same as the user dragging it). Give x/y as the new TOP-LEFT corner in points from the page top-left as displayed, or dx/dy as an offset in points (positive dy moves down). Only pending inserts can be moved; saved text is page content.
ParameterTypeDescription
dxnumberHorizontal offset in points (positive = right)
dynumberVertical offset in points (positive = down)
id *stringInserted text id from list_inserted_text
xnumberNew left edge in points from the page left edge
ynumberNew top edge in points from the page top edge
move_text_blockMove a whole paragraph to another position on its page without changing its text (takes effect on save; fonts and spacing are kept as-is). The paragraph is located like in edit_block: paragraph_text must match exactly one paragraph. dx/dy are the offset in PDF points as displayed: positive dx moves right, positive dy moves DOWN on screen (negative dy moves up). Nothing else on the page moves, so check the target area is free (read the page layout first). Typical use: after deleting a paragraph, move the following paragraph up by the deleted height to close the gap.
ParameterTypeDescription
dx *numberHorizontal offset in points; positive moves right
dy *numberVertical offset in points as displayed; positive moves down, negative up
page *integerPage number (1-based)
paragraph_text *stringVerbatim fragment identifying the paragraph; must match exactly one paragraph on the page
open_documentsWork with the documents the user currently has open in HermesOffice tabs — not just the one a session opened. Actions: "list" (no target) returns every open document with its id, type, path, title, whether it has ever been saved, and whether it has unsaved changes; "read" returns one document's live content including unsaved edits; "close" closes one, saving it first by default (pass unsaved:"discard" to drop the changes). Note that "close" writes over the document's own file when it has a path — it does not stop to ask, so the saved file replaces whatever was on disk. Identify a document by its path, or by the id from "list" when it has never been saved. To *edit* one of these documents, pass its id (or path) as the `document` argument of the family content tools (insert_content / apply_ops / apply_sheet_ops / apply_slide_ops): no session is needed, and the UI switches to that tab so the user sees the change land. PDF tabs are listed but cannot be read or closed here: the pdf app is a viewer, so an open PDF has no readable or savable state through this tool.
ParameterTypeDescription
action *stringwhat to do
targetstringpath or tab id of the document; required for "read" and "close"
unsavedstring"close" only: save before closing (default), or discard the changes
open_in_genofficeOpen an existing file in the running HermesOffice app, focusing its tab.
ParameterTypeDescription
path *stringabsolute path to the file to open
plan_page[Always before generating a new page or a full redesign, and when the user asks to restyle or "extract the brief" of an existing page] The system drafts the brief from this conversation (it reads the questionnaire answers, web_search findings, attachments and the page) and shows it to the user as style tiles with editable fields; pass only the mode and short notes. With mode "new" or "redesign" the confirmed brief is written into a page by the system right away (you do not write HTML yourself). Do not describe the brief in your reply.
ParameterTypeDescription
mode *stringnew = empty document, the page is generated after confirmation; redesign = the user asked to rebuild the whole page, generated after confirmation; restyle = keep the structure, you update --brief-* variables with apply_ops afterwards; extract = only pin the inferred brief
notesstringAt most three sentences the brief must honor: the choices the user made, a redo note, a direction hint. No facts or copy here; the writer reads the conversation.
propose_operationsSubmit a batch of change operations, applied to the workbook immediately (the user can roll back with the [Undo] button or ⌘Z). Basic operations: {op:"set_cell",sheetId,address,value} | {op:"set_formula",sheetId,address,formula(starts with =)} | {op:"clear_cell",sheetId,address} | {op:"rename_sheet",sheetId,name}. Field definitions for the remaining operations live in the guides — load_guide before using them: writing(set_range/fill_range/copy_range/convert_to_values/clear_range/find_replace) | formatting(format_range) | layout(sort_range/merge_cells/unmerge_cells/set_row_height/set_col_width/set_rows_hidden/set_cols_hidden/set_freeze/set_page_setup) | structure(insert_rows/delete_rows/insert_cols/delete_cols/add_sheet/delete_sheet/duplicate_sheet/set_sheet_hidden/move_sheet/protect_sheet) | charts(add_chart/edit_chart/delete_visual/add_sparkline/add_shape/edit_shape/add_image) | pivot(add_pivot/refresh_pivot) | table(add_table/add_table_row/add_table_column/delete_table_row/delete_table_column/delete_table) | data(set_hyperlink/set_filter/clear_filter/set_filter_criteria/add_conditional_format/clear_conditional_formats/set_data_validation/set_note/add_defined_name/delete_defined_name). Limits: structural operations (row/column insert-delete, sheet add/delete/duplicate/move/hide) cannot share a batch with other classes; at most 2000 expanded cell changes — except the range-level bulk ops fill_range / copy_range / convert_to_values / clear_range / find_replace / sort_range / format_range, which handle up to 200,000 cells in one op (use fill_range to fill a formula or pattern down a whole column instead of huge set_range batches, copy_range to duplicate a large block once, convert_to_values to freeze formulas into their computed values); sheetId must be an id returned by get_workbook_context.
ParameterTypeDescription
operations *arrayArray of operations in the workbook DSL discriminated-union format
summary *stringOne-sentence summary of this batch of changes
read_annotationsList the comment notes (sticky notes, with their reply threads) and text markups (highlight/underline/strikeout) in the document — both saved in the file and queued unsaved this session. Optional page range; omit to read the whole document. Reply to a note with reply_note or change its text with edit_note using the returned note ids (replies have their own ids).
ParameterTypeDescription
endintegerLast page (inclusive); omit to read to the end
startintegerFirst page (1-based); omit to start at page 1
read_blocksRead the block tree of the .docx (index|type|content preview). Block indexes change after modifications; call again for fresh indexes.
ParameterTypeDescription
endBlockIndex *integerend block index (inclusive)
startBlockIndex *integerstart block index (0-based, inclusive)
read_cellsRead current values/formulas of specific scattered cells (use read_range for contiguous regions). Always read the affected cells before writing — never assume their contents.
ParameterTypeDescription
addresses *arrayList of cell addresses, e.g. ["A1","B2"], max 100
sheetIdstringSheet to read from (id from get_workbook_context); reads the active sheet when omitted
read_deckRead the visible presentation: every slide with its elements (ids, types, text, geometry) so you can target follow-up edits. Element ids and slide indexes are what apply_slide_ops addresses; geometry is document-space EMU (1 px = 9525 EMU on a standard 16:9 deck).
read_documentRead the visible document as a block list: one "index|type|text" line per block, where the index is what apply_ops and insert_content address. Long blocks are clipped for reading; the list is an overview, not a lossless copy (use read_docx for full text).
read_docxRead a Word .docx file and return its visible text (one paragraph per line).
ParameterTypeDescription
path *stringabsolute path to a .docx file
read_formatsRead explicit cell formats in a range (bold/italic/underline/colors/number format/alignment/borders); only formatted cells are returned. Use when you need to "reuse the format from somewhere" or inspect current formatting; max 200 cells.
ParameterTypeDescription
range *stringRange like "A1:D20"
sheetIdstringSheet to read from (id from get_workbook_context); reads the active sheet when omitted
read_frontmatterRead the document properties: the raw YAML frontmatter block at the top of the file (title, tags, date, …), without the --- fences. Write it back with the setFrontmatter op.
read_pagesRead the text content of a page range (with [Page N] markers). Read the relevant pages before answering questions; at most 10 pages per call, over-long output is truncated.
ParameterTypeDescription
endintegerEnd page number (inclusive); if omitted, only the start page is read
start *integerStart page number (1-based)
read_pdfRead a PDF file: page count, metadata (title/author), and per-page text with page size. Text is extracted in content order, so complex multi-column layouts may scramble the reading order. Scanned pages have no text layer and come back with empty text and hasTextLayer:false. Large documents are capped; use `pages` for a bounded read.
ParameterTypeDescription
pagesstring1-based pages to read, e.g. "3" or "1-5,8"; default is the whole document
path *stringabsolute path to a .pdf file
read_rangeRead current values/formulas by rectangular range, returning a grid with row numbers and column letters. The requested range is not the worksheet data extent: never infer total row or record count from its ending row; use get_workbook_context. This is the preferred way to read data; max 2000 cells — read larger regions in multiple calls.
ParameterTypeDescription
range *stringRange like "A1:D20"; a single cell like "B2" is also accepted
sheetIdstringSheet to read from (id from get_workbook_context); reads the active sheet when omitted
read_sheetRead the visible workbook: sheet names with data extents, and optionally the current values/formulas of specific cells. Address a worksheet by NAME (the CLI convention, and stable across sessions) or by the sheetId the overview reports.
ParameterTypeDescription
addressesarrayA1 addresses to read (values + formulas, at most 100 per call); omit to get the workbook overview only
sheetstringworksheet name to read from; default is the active sheet
sheetIdstringworksheet id (from a previous overview) as an alternative to `sheet`; a name is preferred
read_sheet_featuresRead a worksheet's feature state: AutoFilter (range and column criteria), conditional formatting rules, data validation rules, defined names, freeze panes, hidden/protected status, shapes and images, and page setup pending save this session. Read the current state before modifying or clearing any of these existing settings — never change them blindly.
ParameterTypeDescription
sheetIdstringTarget sheet id; reads the active sheet when omitted
read_sourceRead a slice of the HTML source with line numbers. Address by line range, or by sid to read one element. Long results are paged (page starts at 0).
ParameterTypeDescription
end_lineinteger
pageinteger
sidinteger
start_lineinteger
remove_image_backgroundRemove the background of an existing page image (makes the edge-connected background color transparent, like "Remove Background" in Office); footprint and z-order kept (takes effect on save). Works best on photos/logos on a plain background. Call list_page_images first; image_number refers to that listing.
ParameterTypeDescription
image_number *integerImage number from list_page_images (1-based, per page)
page *integerPage number (1-based)
tolerancenumberColor tolerance 0-100 (default ${DEFAULT_CUTOUT_TOLERANCE}); raise it when background remains, lower it when parts of the subject disappear
replace_blocksReplace a range of blocks in the visible document with new HTML content. Use read_document to learn block indexes.
ParameterTypeDescription
endBlockIndex *numberlast block index to replace (inclusive)
html *stringrestricted HTML fragment the range is replaced with
startBlockIndex *numberfirst block index to replace (inclusive)
replace_imageSwap an existing page image's pixels for a downloaded URL (from image_search or generate_image) in place — footprint and z-order survive; the new image stretches to the old footprint (takes effect on save). Call list_page_images first; image_number refers to that listing. This is the tool for "change/AI-edit this image": generate_image with the desired edit, then replace_image with the returned URL.
ParameterTypeDescription
image_number *integerImage number from list_page_images (1-based, per page)
page *integerPage number (1-based)
url *stringDirect image link (PNG/JPEG)
replace_pagesReplace the given pages with all pages of another PDF. A native file picker opens for the user to choose that PDF. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved and the file on disk is rewritten, which cannot be undone. Afterwards the document reloads and page numbers change; re-read (search_text/read_pages) before any further edit. Prefer apply_ops (deletePage / setPageOrder / rotatePages) when it suffices.
ParameterTypeDescription
pages *stringOriginal page numbers to replace as a range string, e.g. "1-3,5"
reply_noteAppend a reply to an existing note thread (takes effect on save; authored as "AI Assistant"). note_id is a thread id from read_annotations.
ParameterTypeDescription
note_id *stringThread id from read_annotations (e.g. "S12")
page *integerPage number (1-based) the thread is on
text *stringReply contents
rotate_imageRotate an existing page image about its center (takes effect on save). Call list_page_images first; image_number refers to that listing. Quarter turns only; the footprint width/height swap for 90°/270°.
ParameterTypeDescription
directionstringcw = 90° clockwise (default), ccw = 90° counter-clockwise, 180 = half turn
image_number *integerImage number from list_page_images (1-based, per page)
page *integerPage number (1-based)
save_sessionSave the active session to an absolute path and end it. A path with no extension gets the active family's file format appended (docx: .docx; xlsx: .xlsx; pptx: .pptx); a different extension is refused. Refuses to replace an existing file unless overwrite is true. This is the output step.
ParameterTypeDescription
overwritebooleanallow replacing an existing file at `path`; default false
path *stringabsolute output path for the file
search_textSearch the full text for a string; returns the page number and a context excerpt for each hit. Prefer this when locating which page something is on.
ParameterTypeDescription
query *stringText to search for (case-insensitive)
select_rangeSelect a range in the grid and scroll the user's view to it, activating its sheet. Pure view navigation — changes no data, but it does replace whatever the user had selected. Use it only when they asked to be moved ("take me there", "select those rows"); to merely point at a location, cite it as [C42](sheetnav://C42) in your reply and let them click.
ParameterTypeDescription
range *stringRange like "A1:D20"; a single cell is also accepted
sheetIdstringTarget sheet id; defaults to the active sheet
set_header_footerSet the header and footer stamped on every page (takes effect on save): six text slots (header/footer × left/center/right) plus an automatic page number in the footer center. Text may contain {page} and {total} placeholders. The call replaces the header/footer set earlier this session — omitted slots become empty — and a call with every slot empty and page_number false removes it.
ParameterTypeDescription
colorstringText color as #RRGGBB (default ${DEFAULT_HEADER_FOOTER.color})
font_sizenumberFont size in points (default ${DEFAULT_HEADER_FOOTER.fontSize})
footer_centerstring
footer_leftstring
footer_rightstring
header_centerstring
header_leftstring
header_rightstring
page_numberbooleanPrint the page number in the footer center (overrides footer_center); default false
start_atintegerNumber of the first page when page_number is on (default ${DEFAULT_HEADER_FOOTER.startAt})
set_image_opacityMake an existing page image semi-transparent (fade/watermark look) by baking the opacity into its pixels; footprint and z-order kept (takes effect on save). Absolute, not cumulative. Call list_page_images first; image_number refers to that listing.
ParameterTypeDescription
image_number *integerImage number from list_page_images (1-based, per page)
opacity *numberResulting opacity from 0 (invisible) to 1 (fully opaque); e.g. 0.5 = half transparent
page *integerPage number (1-based)
set_page_sizeResize every page of the document to a paper size (content scaled to fit, portrait). Pass either preset or both width and height in points. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved and the file on disk is rewritten, which cannot be undone. Afterwards the document reloads and page numbers change; re-read (search_text/read_pages) before any further edit. Prefer apply_ops (deletePage / setPageOrder / rotatePages) when it suffices.
ParameterTypeDescription
heightnumberPage height in points (when no preset)
presetstringPaper size preset
widthnumberPage width in points (when no preset)
set_watermarkAdd or replace a text watermark drawn diagonally across every page (takes effect on save); pass text "" to remove the watermark added this session. It is stamped above the page content and cannot remove a watermark that is part of the original document.
ParameterTypeDescription
anglenumberCounterclockwise angle in degrees (default ${DEFAULT_WATERMARK.angle})
colorstringText color as #RRGGBB (default ${DEFAULT_WATERMARK.color})
opacitynumberOpacity 0–1 (default ${DEFAULT_WATERMARK.opacity})
sizenumberFont size as a fraction of the page width, 0.02–0.5 (default ${DEFAULT_WATERMARK.sizeRatio})
text *stringWatermark text; "" removes it
split_pagesCut every page into a grid of 2, 4, or 9 smaller pages (inverse of merge_pages). IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved to disk (cannot be undone) and the result is written as a NEW file in the default save folder and opened in a new tab; the current document keeps its pages.
ParameterTypeDescription
per_page *integerPieces per page
split_pdfSplit the document into several PDF files of pages_per_file pages each (at least two files). A native folder picker opens for the user to choose where the files go; the current document keeps its pages. IRREVERSIBLE FILE OPERATION: the user is asked to confirm in a card first; on confirm every unsaved edit is saved to disk (cannot be undone) and the result is written as a NEW file in the default save folder and opened in a new tab; the current document keeps its pages.
ParameterTypeDescription
pages_per_file *integerPages per output file (1 to page count - 1)
trace_dependentsFind every formula in the workbook (all sheets) that reads a given cell — its dependents. Use before changing or deleting a cell to see what would break, or to follow how an error value propagates downstream. Dependents that reach the cell only through a defined name are not detected.
ParameterTypeDescription
address *stringTarget cell, e.g. "B2"
sheetIdstringSheet the cell lives on; defaults to the active sheet
trace_precedentsList the cells/ranges a formula reads (its precedents) with their current values, flagging any precedent that itself holds an error value — the first step when diagnosing a broken formula ("why is C10 #DIV/0!?"). Depth 1; call again on a suspect precedent to walk further up the chain. Defined names are not expanded — resolve them via read_sheet_features and trace their ranges directly.
ParameterTypeDescription
address *stringFormula cell to audit, e.g. "C10"
sheetIdstringSheet the cell lives on; defaults to the active sheet
transform_imageMove/resize an existing page image, or change its z-order relative to the text (takes effect on save). Call list_page_images first; image_number refers to that listing. Omitted parameters keep their current value; giving only width (or only height) scales the other side by the aspect ratio.
ParameterTypeDescription
heightnumberNew height in PDF points
image_number *integerImage number from list_page_images (1-based, per page)
layerstringZ-order relative to the page text
page *integerPage number (1-based)
widthnumberNew width in PDF points
xnumberNew left edge in points from the page left edge as displayed
ynumberNew top edge in points from the page TOP edge as displayed
write_document[Content-first documents only: the user wants text written (article, guide, memo, announcement), not a designed page] Hands a plan to the system document writer, which writes the whole document as a clean single-column page. Give the title, a plan (outline, key points, length, voice) and the reference material in context. Everything else — new designed pages and full redesigns — goes through plan_page; single edits use apply_ops.
ParameterTypeDescription
contextstringfacts, figures and source text the document must draw on
plan *stringoutline and key points the document must cover, length, voice
titlestring

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.2K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and apps/sheets/native/xlsx-engine/Cargo.lock.

2 checks have not been run yet.

Releases

ho-v0.9.0HermesOffice 0.9.0 · 25 Oct 2026HermesOffice 0.9.0 Incorpora a sincronização revisada do PR #67, preservando as customizações do HermesOffice e as sessões de IA por documento. Novo editor HTML, com prévia, edição visual e painel Hermes. CLI e MCP para criar, ler e editar…
ho-v0.8.6HermesOffice 0.8.6 — atualizador corrigido e melhorias de IA · 24 Oct 2026HermesOffice 0.8.6 Restores automatic update discovery for explicitly enabled source builds and includes the reviewed changes from #81. Start the correct desktop updater: packaged server feed when present; otherwise the source updater with…
ho-v0.8.5HermesOffice 0.8.5 — o app oferece subir o gateway, e o build de release não quebra mais · 28 Sep 2026O que muda 1. O app volta a oferecer subir o gateway Hermes (#75, PR #78). O launcher existe desde a issue #7 — diálogo de consentimento, checkbox "iniciar automaticamente", persistência da resposta, `hermes gateway start` + poll do…
ho-v0.8.4HermesOffice 0.8.4 — a chave do gateway se preenche sozinha (fim do «Nenhuma chave de API configurada») · 28 Sep 2026O defeito Em uma máquina com o gateway Hermes saudável, o chat de todos os apps respondia `Erro: Nenhuma chave de API configurada para hermes`. Causa: a instalação nova não tinha `userData/ai-settings.json`. O handler `ai:get-settings`…
ho-v0.8.3HermesOffice 0.8.3 — links certos, instalador em 1 clique · 25 Sep 2026Baixar (1 clique) macOS · Apple Silicon — `HermesOffice-arm64.dmg` · `HermesOffice-arm64-mac.zip` Esse link aponta sempre para a release mais nova — dá para compartilhar sem se preocupar com a versão. Na primeira abertura o macOS pede…

README

The repository's README runs to about 2.2K words, fetched yesterday. The original in the repository is authoritative.

Read full README
Questions

About HermesOffice

How do I install HermesOffice?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is HermesOffice safe to use with an AI agent?

Its trust score is 78 out of 100 (good). It passes all 4 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is HermesOffice still maintained?

Yes — the latest release is ho-v0.9.0 (25 Oct 2026), and the last commit was 20 days ago. The repository has 642 stars and 27 open issues.

What tools does HermesOffice provide?

Conduid read 81 tools from the source: add_form_mark, add_note, aggregate_range, apply_ops, apply_sheet_ops, apply_slide_ops, ask_clarification, create_document and 73 more. 74 of them publish their parameters, listed under Tools above.

What license is HermesOffice released under?

The repository declares the Apache-2.0 license. That applies to the latest release, ho-v0.9.0, as well.