Parameters
Route path starting with ’/’. Use ’/’ for custom home page.
Either ‘api’ or ‘page’.
Full replacement source code. Must be valid TypeScript/TSX with a default export. Use for new routes or total rewrites. Mutually exclusive with code_edit.
Partial edit of the route code — only the changed sections. Use ’// … existing code …’ for unchanged parts. Preferred for updating existing routes. Mutually exclusive with code.
A sentence describing what the edit does, to help disambiguate. Used with code_edit.
Whether the route is publicly accessible. API routes are always public. For pages, omit to preserve current visibility on updates; defaults to False for new pages (True for homepage).