checkCode
ChatGPTValidate and lint TypeScript code snippet for MicroFn. Returns validation results and package extraction summary.
checkDeployment
ChatGPTCheck the deployment status of a function. Requires functionName parameter in format 'username/functionName'.
createFunction
ChatGPTCreate a new MicroFn workspace/function with TypeScript code. The code must export either: 1) A 'main' function as the entry point, OR 2) Any named function (which will be auto-wrapped with a main function). Examples: 'export async function main() { return "hello" }', 'export async function sayHello(name) { return "hello " + name }' (auto-wrapped), 'export async function main() { const btc = await fetch("..."); return btc.json() }'. IMPORTANT: Import @microfn/* modules as defaults: 'import kv from "@microfn/kv"' NOT 'import { kv } from "@microfn/kv"'. Common patterns: use @microfn/secret for env vars, @microfn/kv for persistent storage (e.g., counters, cache), and fetch() for HTTP requests. Input: 'name' (string) - the function name, 'code' (string) - the TypeScript code. Output: the created workspace object with its name and metadata.
createSecret
ChatGPTCreates a new secret for the specified function. Secrets cannot be overwritten; if the key already exists, delete it first.
deleteSecret
ChatGPTDeletes a secret from the specified function. Call getSecrets first to obtain the secret's id.
executeFunction
ChatGPTExecute a function with given input. Requires functionName (format: 'username/functionName') and optional inputData parameters.
generateFunction
ChatGPTGenerate a new function from a natural language prompt. Returns one or more code variations.
getExecution
ChatGPTGet one execution of a function, including its trigger, arguments, response, error and logs. Takes the id or execution_id reported by listExecutions. Requires functionName in format 'username/functionName'.
getFunction
ChatGPTGet details of a function (no source code). Use getFunctionCode for code. Requires functionName parameter in format 'username/functionName'.
getFunctionCode
ChatGPTGet the source code of a function. Requires functionName parameter in format 'username/functionName'.
getSecrets
ChatGPTRetrieves all secrets for the specified function
listExecutions
ChatGPTList recent executions of a function, newest first, to find a run worth inspecting. Returns each run's status, trigger, error and timestamps, but not its arguments, response or logs (call getExecution for those). Requires functionName in format 'username/functionName'.
listFunctions
ChatGPTList available MicroFn workspaces/functions, 20 per page in 'username/name' order, for use with the other tools. When 'hasMore' is true, request the next 'page' for the rest of the account.
listPackages
ChatGPTLists packages from the latest deployment. Requires functionName parameter in format 'username/functionName'.
ping
ChatGPTSimple ping tool to test connectivity
renameFunction
ChatGPTRename a function/workspace
searchFunctions
ChatGPTFind MicroFn functions whose name contains a substring, case-insensitively. Matches the function name only, not the username. Pages like listFunctions, with 'total' counting every match.
updateFunctionCode
ChatGPTUpdate the source code of a function. The code can export either: 1) A 'main' function directly, OR 2) Any named function (auto-wrapped). Examples: Bitcoin price fetcher: 'export async function main() { const res = await fetch("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd"); return { price_usd: (await res.json()).bitcoin.usd }; }'. With KV counter: 'import kv from "@microfn/kv"; export async function main() { const count = (await kv.get("visits")) || 0; await kv.set("visits", count + 1); return { visits: count + 1 }; }'. IMPORTANT: Always use default imports for @microfn/* modules. Requires functionName (format: 'username/functionName') and code parameters.
updateFunctionSettings
ChatGPTUpdate settings for a function, such as enabling/disabling MCP tool exposure.
waitForFunctionDeployment
ChatGPTWait for a function deployment to complete. Uses PubSub integration for real-time updates with 30-second timeout. Returns immediately if not currently deploying.
checkCode
ClaudecheckDeployment
ClaudecreateFunction
ClaudecreateSecret
ClaudedeleteSecret
ClaudeexecuteFunction
ClaudegenerateFunction
ClaudegetExecution
ClaudegetFunction
ClaudegetFunctionCode
ClaudegetSecrets
ClaudelistExecutions
ClaudelistFunctions
ClaudelistPackages
Claudeping
ClauderenameFunction
ClaudesearchFunctions
ClaudeupdateFunctionCode
ClaudeupdateFunctionSettings
ClaudewaitForFunctionDeployment
Claude