FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
neverstew

neverstew

OpenTownie

Remix of stevekrouse/OpenTownie
Public
Like
OpenTownie
Home
Code
13
backend
3
frontend
4
prompts
2
LLM_AGENT_GUIDE.md
README.md
TODOs.md
VAL_TOWN_TOOL_README.md
example_usage.ts
fetch_llms_txt.ts
H
index.ts
val_town_info.ts
val_town_tool.ts
val_town_tool_definition.ts
Branches
4
Pull requests
1
Remixes
History
Environment variables
2
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
VAL_TOWN_TOOL_README.md
Code
/
VAL_TOWN_TOOL_README.md
Search
4/5/2025
Viewing readonly version of llms-txt branch: v8
View latest version
VAL_TOWN_TOOL_README.md

Val Town Info Tool

This tool allows an LLM agent to query information about the Val Town platform using the llms.txt standard and navigate through links within the results.

Features

  • Fetches and parses information from Val Town's llms.txt standard
  • Allows filtering information by specific queries
  • Supports navigation through links specified within the results
  • Provides formatted responses suitable for LLM consumption

Files

  • val_town_info.ts - Core functionality for fetching and parsing llms.txt content
  • val_town_tool.ts - Wrapper function to be used as a tool by LLM agents

Usage

Basic Query

To get information about a specific topic:

import { valTownInfoTool } from "./val_town_tool.ts"; // Query information about APIs const apiInfo = await valTownInfoTool("API"); console.log(apiInfo);

Navigation

To navigate to a specific link found in previous results:

// Navigate to a specific documentation page const pageInfo = await valTownInfoTool(undefined, "https://docs.val.town/some-specific-page"); console.log(pageInfo);

General Information

To get general information about the Val Town platform:

// Get general platform information const generalInfo = await valTownInfoTool(); console.log(generalInfo);

Integration with LLM Agents

When integrating this tool with an LLM agent, instruct the agent to:

  1. Use the tool to query general information about Val Town
  2. Refine searches with specific queries based on user questions
  3. Navigate through links to explore related documentation
  4. Refer to the llms.txt standard for any Val Town related functionality

llms.txt Standard

The llms.txt standard is a structured format for providing information to LLMs. It organizes content into sections with clear headings and supports links for navigation. This tool parses the standard format to extract relevant information and present it in a way that's easy for LLMs to understand and use.

For more information about the standard, visit: https://docs.val.town/llms.txt

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.