Skip to content

Commit d1d326a

Browse files
committed
fix(jupyter): request content=1 when listing directory contents
Without it, Jupyter Server returns directory metadata with content: null, so jupyter_list_contents always reported an empty items array.
1 parent 1177326 commit d1d326a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/tools/jupyter/list_contents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const jupyterListContentsTool: ToolConfig<
4040
url: (params) => {
4141
const base = normalizeJupyterServerUrl(params.serverUrl)
4242
const path = encodeJupyterPath(params.path)
43-
return `${base}/api/contents/${path}?type=directory`
43+
return `${base}/api/contents/${path}?type=directory&content=1`
4444
},
4545
method: 'GET',
4646
headers: (params) => buildJupyterAuthHeaders(params.token),

0 commit comments

Comments
 (0)