Rendering preferences
Read, write or clear the stored rendering preferences — engine, format, scope, math renderer, print mode.
Skills it satisfies
A skill states the capability; this Tool is one way to exercise it. Each skill’s declared input and output contract follows, where it has one.
build-pdf
Builds a paper folio’s PDF locally in the workspace — the monolithic PDF plus split per-chapter PDFs.
Source: folio-assistant-sci/skills/content/folio-paper-adapter/build-pdf.md.
The skill declares no I/O contract (schemas/skills/build-pdf/{input,output}.schema.json).
build-docs
Builds the Lean HTML documentation (doc-gen4) locally in the workspace, for any paper folio’s Lean package.
Source: folio-assistant-sci/skills/content/folio-paper-adapter/build-docs.md.
The skill declares no I/O contract (schemas/skills/build-docs/{input,output}.schema.json).
Inputs and outputs
Each port names a shared type by IRI, so two Tools for one skill can be checked for interchangeability.
| port | type | required | description | constraint | |
|---|---|---|---|---|---|
| in | action | PreferenceAction | string · one of get, set, reset · Read, write or clear the stored preferences. | ||
| in | render_format | RenderFormat | string · one of pdf, html · A render target: pdf or html. | ||
| in | render_scope | RenderScope | string · one of full, chapter, section · How much of the folio to render. | ||
| in | latex_engine | LatexEngine | string · one of pdflatex, lualatex, xelatex · The TeX engine. | ||
| in | math_renderer | MathRenderer | string · one of katex, mathjax · The browser-side math renderer. | ||
| in | auto_preview | Flag | boolean · A boolean switch — projects to a bare flag, with no value word | ||
| in | formula_dpi | Dpi | integer · Dots per inch for rendered formulae. | ||
| in | default_chapter | RepoPath | string · pattern ^[A-Za-z0-9._][A-Za-z0-9._/-]*$ · A path relative to the repository root. No .. segments. | ||
| in | print_mode | PrintMode | string · one of formal, compact · Typesetting density. | ||
| in | compact_inline_refs | Flag | boolean · A boolean switch — projects to a bare flag, with no value word | ||
| out | preferences | Markdown | The preferences after the call. | string · Markdown text. Not admissible as a command-line argument — see INJECTION_SAFE. |
Processes and tasks
No process step names a skill this Tool satisfies.
How it is deployed and reached
- MCP. Served as
paper_preferencesbysage(cat-harness-tools/scripts/sage-mcp.sh),google-drive(cat-harness-tools/scripts/google-drive-mcp.sh),folio-assistant(bun run cat-harness-tools/src/index.ts --stdio --repo .), the servers.mcp.jsondeclares. - In process.
adapters/paper/tools/preferences.ts— loaded by the harness directly, with no server. - GitHub Actions. No workflow in this checkout runs its command.
The MCP tool it serves, as tools/list answers:
paper_preferences — read from its registrar.
| parameter | type | required | description |
|---|---|---|---|
action | get \| set \| reset | Action: get current, set values, or reset to defaults | |
render_format | pdf \| html | Preferred output format | |
render_scope | full \| chapter \| section | Default render scope | |
latex_engine | pdflatex \| lualatex \| xelatex | LaTeX engine | |
math_renderer | katex \| mathjax | Math renderer for HTML output | |
auto_preview | boolean | Automatically open in browser after render | |
formula_dpi | number | DPI for formula preview PNG | |
default_chapter | string | Default chapter to render when scope=chapter | |
print_mode | formal \| compact | Print mode: formal (affiliations, expanded) or compact (dense, no affiliations) | |
compact_inline_refs | boolean | In compact mode, include examples/remarks directly referenced by blocks in the view |
As an API: its operation in the OpenAPI document and the MCP tool list of its layer.
| install | none |
| network | no |
What it is made of
| role | file | |
|---|---|---|
| definition | folio-assistant-sci/tools/paper-preferences/paper-preferences.ts | |
| in-process module | folio-assistant-sci/adapters/paper/tools/preferences.ts |
Linked data
The Tool is published as its own JSON-LD document at its IRI, https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/paper-preferences.jsonld, partOf its layer’s document. The node below is the definition this page was drawn from, and is embedded in the page as application/ld+json.
{
"@context": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.context.jsonld",
"@id": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/paper-preferences.jsonld",
"@type": "https://litlfred.github.io/cat-harness/v0/ns/Tool",
"partOf": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.jsonld",
"name": "paper-preferences",
"title": "Rendering preferences",
"description": "Read, write or clear the stored rendering preferences — engine, format, scope, math renderer, print mode.",
"install": {
"none": true
},
"invoke": {
"mcp": {
"tool": "paper_preferences"
},
"inProcess": {
"module": "adapters/paper/tools/preferences.ts"
}
},
"io": {
"inputs": [
{
"name": "action",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/PreferenceAction",
"required": false,
"arg": {
"flag": "--action"
}
},
{
"name": "render_format",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/RenderFormat",
"required": false,
"arg": {
"flag": "--render-format"
}
},
{
"name": "render_scope",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/RenderScope",
"required": false,
"arg": {
"flag": "--render-scope"
}
},
{
"name": "latex_engine",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/LatexEngine",
"required": false,
"arg": {
"flag": "--latex-engine"
}
},
{
"name": "math_renderer",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/MathRenderer",
"required": false,
"arg": {
"flag": "--math-renderer"
}
},
{
"name": "auto_preview",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Flag",
"required": false,
"arg": {
"flag": "--auto-preview"
}
},
{
"name": "formula_dpi",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Dpi",
"required": false,
"arg": {
"flag": "--formula-dpi"
}
},
{
"name": "default_chapter",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/RepoPath",
"required": false,
"arg": {
"flag": "--default-chapter"
}
},
{
"name": "print_mode",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/PrintMode",
"required": false,
"arg": {
"flag": "--print-mode"
}
},
{
"name": "compact_inline_refs",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Flag",
"required": false,
"arg": {
"flag": "--compact-inline-refs"
}
}
],
"outputs": [
{
"name": "preferences",
"schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Markdown",
"description": "The preferences after the call."
}
]
},
"satisfies": [
"build-pdf",
"build-docs"
],
"requirements": {
"network": false
}
}