Farm.js Docs

v0.1.28
dev.farmjs/docs Checked 21 hours ago Published 1 month ago

Search and read the Farm.js docs: pages, sections, code examples and config options.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_code_examples Get docs code examples

Return fenced code examples from the docs with parsed metadata such as title, framework, packageManager, and runnable.

ParameterTypeDescription
frameworkstring
languagestring
limitinteger
localestring
packageManagerstring
pathstring
querystring
runnableboolean

get_config_schema Get docs config schema

Return structured docs.config.ts option metadata, optionally filtered by option path or query.

ParameterTypeDescription
optionstring
querystring

get_context Get budgeted docs context

Build deterministic, section-level documentation context for a query within a conservative UTF-8 byte ceiling derived from the requested token budget, with source URLs and accounting metadata.

ParameterTypeDescription
query *string
frameworkstring
localestring
package
tags
tokenBudgetinteger
versionstring

get_navigation Get docs navigation

Return the documentation navigation tree for the current docs site.

ParameterTypeDescription
localestring

hydrate_content_changes Hydrate docs content changes

Fetch only added and changed agent-facing sections after list_content_changes. Returns deletion tombstones and digest-bound continuation cursors under a conservative token budget.

ParameterTypeDescription
since *string
cursorstringOpaque nextCursor from the preceding response page.
localestring
tokenBudgetinteger

list_content_changes List docs content changes

Synchronize body-free document metadata. Save indexGeneration and pass it as since on the next poll. A reset response means the named snapshot is no longer available.

ParameterTypeDescription
localestring
sincestring

list_docs List docs by section

List documentation pages grouped by section, optionally narrowed to one section.

ParameterTypeDescription
cursorstringOpaque nextCursor from the preceding response page.
localestring
sectionstring

list_page_sections List sections in a docs page

Discover a page's canonical headings, anchors, hierarchy, line ranges, size estimates, and budget-aware fetch URLs without returning the page body.

ParameterTypeDescription
path *string
byteBudgetinteger
cursorstringOpaque nextCursor from the preceding response page.
localestring
tokenBudgetinteger

list_pages List docs pages

List the known documentation pages with titles, slugs, and URLs.

ParameterTypeDescription
cursorstringOpaque nextCursor from the preceding response page.
localestring

list_search_facets List documentation search facets

List valid framework, version, package, and tag filters with matching page counts before calling search_docs. Use facet, limit, and cursor to continue a large facet without document bodies.

ParameterTypeDescription
audiencestring
cursorstringOpaque nextCursor from the preceding response page.
facetstring
framework
limitinteger
localestring
package
tags
version

list_tasks List documented tasks

List pages with actionable agent contracts, optionally filtered by text or applicability.

ParameterTypeDescription
cursorstringOpaque nextCursor from the preceding response page.
frameworkstring
localestring
packagestring
querystring
versionstring

read_page Read a docs page

Read a documentation page by slug or URL path, optionally selecting one heading and limiting returned characters.

ParameterTypeDescription
path *string
localestring
maxCharsinteger
sectionstring

read_pages Read several docs pages

Read up to 20 documentation pages in one round trip. Results preserve request order and share a conservative UTF-8 token budget.

ParameterTypeDescription
paths *arrayPage slugs or URL paths to read in the requested order.
localestring
maxCharsPerPageinteger
tokenBudgetinteger

read_task Read a documented task

Read the full structured agent contract for a page by slug or URL path.

ParameterTypeDescription
path *string
localestring
maxCharsinteger
sectionstring

search_docs Search documentation

Search the docs by keyword with optional framework, version, package, and tag filters. Returns structured ambiguity and metadata warnings.

ParameterTypeDescription
query *string
audiencestring
cursorstringOpaque nextCursor from the preceding response page.
explainbooleanInclude matched terms, scope decisions, ambiguity, and ranking reasons.
framework
limitinteger
localestring
package
tags
version

submit_feedback Submit documentation feedback

Submit machine-readable documentation feedback. The payload is validated against the site's configured agent feedback schema before delivery.

ParameterTypeDescription
payload *object
contextobject