Open the file browser
POST
/api/panes/{pane_id}/open-file-browser
Code sample: Shell / cURL
curl --request POST \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/open-file-browser \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "path": "example", "mode": "files", "focus_file": "example" }'Switches every client to the pane, then opens the file browser, Git mode, or the process viewer there.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”pane_id
required
string format: uuid
Pane ID
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Done
A malformed ID or JSON body
Media typetext/plain
string
Missing or wrong access token
Media typetext/plain
string
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
A body over the size limit
Media typetext/plain
string
No Content-Type: application/json
Media typetext/plain
string
A body that doesn’t match its schema
Media typetext/plain
string