tpmjs/packages/tools/official/fetch-text/package.json
Ajax Davis 17b9ffb6aa chore: version packages
Initial release of 100+ official TPMJS tools
2025-12-31 23:54:47 +10:00

60 lines
1.4 KiB
JSON

{
"name": "@tpmjs/tools-fetch-text",
"version": "0.2.0",
"description": "Fetch a URL and return plain text content with metadata",
"type": "module",
"keywords": ["tpmjs", "web", "fetch", "text", "scraping"],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": ["dist"],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"type-check": "tsc --noEmit",
"clean": "rm -rf dist .turbo"
},
"devDependencies": {
"@tpmjs/tsconfig": "workspace:*",
"tsup": "^8.3.5",
"typescript": "^5.9.3"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/anthropics/tpmjs.git",
"directory": "packages/tools/official/fetch-text"
},
"homepage": "https://tpmjs.com",
"license": "MIT",
"tpmjs": {
"category": "web",
"frameworks": ["vercel-ai"],
"tools": [
{
"name": "fetchTextTool",
"description": "Fetch a URL and return plain text content with metadata",
"parameters": [
{
"name": "url",
"type": "string",
"description": "The URL to fetch",
"required": true
}
],
"returns": {
"type": "FetchTextResult",
"description": "Object with text content, URL, content length, and content type"
}
}
]
},
"dependencies": {
"ai": "6.0.0-beta.124"
}
}