Farm.js Docs
v0.1.28Search 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.
| Parameter | Type | Description |
|---|---|---|
framework | string | |
language | string | |
limit | integer | |
locale | string | |
packageManager | string | |
path | string | |
query | string | |
runnable | boolean |
get_config_schema Get docs config schema
Return structured docs.config.ts option metadata, optionally filtered by option path or query.
| Parameter | Type | Description |
|---|---|---|
option | string | |
query | string |
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
framework | string | |
locale | string | |
package | ||
tags | ||
tokenBudget | integer | |
version | string |
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.
| Parameter | Type | Description |
|---|---|---|
since * | string | |
cursor | string | Opaque nextCursor from the preceding response page. |
locale | string | |
tokenBudget | integer |
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.
| Parameter | Type | Description |
|---|---|---|
locale | string | |
since | string |
list_docs List docs by section
List documentation pages grouped by section, optionally narrowed to one section.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque nextCursor from the preceding response page. |
locale | string | |
section | string |
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.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
byteBudget | integer | |
cursor | string | Opaque nextCursor from the preceding response page. |
locale | string | |
tokenBudget | integer |
list_pages List docs pages
List the known documentation pages with titles, slugs, and URLs.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque nextCursor from the preceding response page. |
locale | string |
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.
| Parameter | Type | Description |
|---|---|---|
audience | string | |
cursor | string | Opaque nextCursor from the preceding response page. |
facet | string | |
framework | ||
limit | integer | |
locale | string | |
package | ||
tags | ||
version |
list_tasks List documented tasks
List pages with actionable agent contracts, optionally filtered by text or applicability.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque nextCursor from the preceding response page. |
framework | string | |
locale | string | |
package | string | |
query | string | |
version | string |
read_page Read a docs page
Read a documentation page by slug or URL path, optionally selecting one heading and limiting returned characters.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
locale | string | |
maxChars | integer | |
section | string |
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.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Page slugs or URL paths to read in the requested order. |
locale | string | |
maxCharsPerPage | integer | |
tokenBudget | integer |
read_task Read a documented task
Read the full structured agent contract for a page by slug or URL path.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
locale | string | |
maxChars | integer | |
section | string |
search_docs Search documentation
Search the docs by keyword with optional framework, version, package, and tag filters. Returns structured ambiguity and metadata warnings.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
audience | string | |
cursor | string | Opaque nextCursor from the preceding response page. |
explain | boolean | Include matched terms, scope decisions, ambiguity, and ranking reasons. |
framework | ||
limit | integer | |
locale | string | |
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.
| Parameter | Type | Description |
|---|---|---|
payload * | object | |
context | object |