Skip to content

Commit 6ade35d

Browse files
authored
fix: Actor tool input schema remove the schemaVersion that cause issues with Gemini CLI (#319)
* fix: Actor tool input schema remove the schemaVersion that cause issues with Gemini CLI * lint
1 parent 663f640 commit 6ade35d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ export function buildActorInputSchema(actorFullName: string, input: IActorInputS
173173
working.properties = transformActorInputSchemaProperties(working);
174174
}
175175

176+
// Remove the schemaVersion field if present
177+
// since it was causing issues with Gemini CLI
178+
// https://github.com/apify/apify-mcp-server/issues/295
179+
if (working.schemaVersion) {
180+
delete working.schemaVersion;
181+
}
182+
176183
let finalSchema = working;
177184
if (isRag) {
178185
finalSchema = pruneSchemaPropertiesByWhitelist(finalSchema, RAG_WEB_BROWSER_WHITELISTED_FIELDS);

0 commit comments

Comments
 (0)