studio_get
Every read of the page studio, chosen by what. editable_pages lists the pages of your app the studio can edit (id, name, kind, last update), without session_id; open one with studio_open_page. A section created with myapp_add is one of them: open it and write its first code with studio_edit_file. The others read in the open page's session: its files (file: without path, the four files and their sizes; with path, the file with line numbers, the first 400 lines without a range, a line longer than 8000 characters cut, version "start" the file as it was when the session opened), where a text appears (search, at most 50 matches), a manual (doc), the app's context (app: palette and fonts, logo, API key names, uploaded files, backend status and tables), the app's pages with their link and the rules to link to them (app_pages), the shop's products with the rules to show them (products). An argument that does not apply to what is refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"what": "<what>"
},
"name": "studio_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | With what app_pages: only the pages of this kind. | |
| name | No | With what app_pages: only the pages with this in their name. | |
| path | No | One of the page's four files, with what file or search. | |
| sort | No | By price or by name, or position: the order of the shop section. Without it, the newest first; with a keyword, the best matches first unless sorted by price or name. | |
| text | No | With what search: the text to find, exactly as written (case-sensitive; not a regular expression). | |
| what | Yes | editable_pages: the pages the studio can edit, without session_id. file: without path, the page's four files and their sizes; with path, that file (start_line, end_line, version). search: where a text appears (text, path). doc: a manual (topic, doc_section). app: the app's context. app_pages: the app's pages to link to (kind, name). products: the shop's products (on_sale, keyword, shop_section, sort, limit). | |
| limit | No | How many products, 8 when not given. | |
| topic | No | With what doc: gb_api (the gb object of the app runtime), services (external APIs, libraries, keys), supabase (shared backend tables), proxy (secret keys), manifest (the fields of manifest.json), gbcontent (the app's sections whose content a page can display, and how to read it). | |
| keyword | No | Words to search for in the products (title, text, tags, brand): those matching any of them, the best matches first. | |
| on_sale | No | With what products: only the products on sale. | |
| version | No | With what file and a path. current (the default): the file as it is now; start: as it was when the session opened. | |
| end_line | No | With what file and a path: the last line to read. | |
| session_id | No | The session_id studio_open_page returned: every what but editable_pages needs it. | |
| start_line | No | With what file and a path: the first line to read. | |
| doc_section | No | With what doc and topic gb_api, which is long: only that part of it. page_url (reading or sharing the address of the page), geolocation (the user's position), native_bridge (the camera, the photo and video library, the app's timezone, gb.request), audio (long-form audio and live streams, gb.audio.*). | |
| shop_section | No | Only the products of this shop section of the app, by its name. |