Skip to content

Commit 7f7969d

Browse files
committed
fix: Review comments
1 parent da8f1d8 commit 7f7969d

15 files changed

+531
-24
lines changed

docs/claude-code-tools.json

Lines changed: 508 additions & 0 deletions
Large diffs are not rendered by default.

src/tools/actor.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ async function getMCPServersAsTools(
244244
// Skip this Actor, connectMCPClient will log the error
245245
return [];
246246
}
247-
const serverTools = await getMCPServerTools(actorId, client, mcpServerUrl);
248-
return serverTools;
247+
return await getMCPServerTools(actorId, client, mcpServerUrl);
249248
} finally {
250249
if (client) await client.close();
251250
}
@@ -340,7 +339,7 @@ There are two ways to run Actors:
340339
341340
**Important:**
342341
343-
A successful run returns a \`datasetId\` (the Actor's output stored as an Apify dataset) and a short preview of items.
342+
Typically, a successful run returns a \`datasetId\` (the Actor's output stored as an Apify dataset) and a short preview of items.
344343
To fetch the full output, use the ${HelperTools.ACTOR_OUTPUT_GET} tool with the \`datasetId\`.
345344
346345
USAGE:
@@ -354,8 +353,8 @@ Step 1: Get Actor Info (step="info", default)
354353
- You MUST do this step first - it's required to understand how to call the Actor
355354
356355
Step 2: Call Actor (step="call")
357-
- Only after step 1, call again with step="call" and proper input based on the schema
358-
- This calls and runs the Actor. It will create an output as an Apify dataset (with datasetId).
356+
- Only after step 1, call this tool again with step="call" and proper input based on the schema
357+
- This runs the Actor. It will create an output as an Apify dataset (with datasetId).
359358
- This step returns a dataset preview, typically JSON-formatted tabular data.
360359
361360
EXAMPLES:

src/tools/dataset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Note: itemCount updates may be delayed by up to ~5 seconds.
5454
USAGE:
5555
- Use when you need dataset metadata to understand its structure before fetching items.
5656
57-
EXAMPLES:
57+
USAGE EXAMPLES:
5858
- user_input: Show info for dataset 8TtYhCwKzQeQk7dJx
5959
- user_input: What fields does username~my-dataset have?`,
6060
inputSchema: zodToJsonSchema(getDatasetArgs),
@@ -89,7 +89,7 @@ The results will include items along with pagination info (limit, offset) and to
8989
USAGE:
9090
- Use when you need to read data from a dataset (all items or only selected fields).
9191
92-
EXAMPLES:
92+
USAGE EXAMPLES:
9393
- user_input: Get first 100 items from dataset 8TtYhCwKzQeQk7dJx
9494
- user_input: Get only metadata.url and title from dataset username~my-dataset (flatten metadata)`,
9595
inputSchema: zodToJsonSchema(getDatasetItemsArgs),
@@ -151,7 +151,7 @@ Use this to understand the dataset before fetching many items.
151151
USAGE:
152152
- Use when you need to infer the structure of dataset items for downstream processing or validation.
153153
154-
EXAMPLES:
154+
USAGE EXAMPLES:
155155
- user_input: Generate schema for dataset 8TtYhCwKzQeQk7dJx using 10 items
156156
- user_input: Show schema of username~my-dataset (clean items only)`,
157157
inputSchema: zodToJsonSchema(getDatasetSchemaArgs),

src/tools/dataset_collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Use limit (max 20), offset, and desc to paginate and sort.
3939
USAGE:
4040
- Use when you need to browse available datasets (named or unnamed) to locate data.
4141
42-
EXAMPLES:
42+
USAGE EXAMPLES:
4343
- user_input: List my last 10 datasets (newest first)
4444
- user_input: List unnamed datasets`,
4545
inputSchema: zodToJsonSchema(getUserDatasetsListArgs),

src/tools/fetch-actor-details.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Present the information in a user-friendly Actor card.
2424
USAGE:
2525
- Use when a user asks about an Actor’s details, input schema, README, or how to use it.
2626
27-
EXAMPLES:
27+
USAGE EXAMPLES:
2828
- user_input: How to use apify/rag-web-browser
2929
- user_input: What is the input schema for apify/rag-web-browser?
3030
- user_input: What is the pricing for apify/instagram-scraper?`,

src/tools/fetch-apify-docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Use this after finding a relevant page with the ${HelperTools.DOCS_SEARCH} tool.
2525
USAGE:
2626
- Use when you need the complete content of a specific docs page for detailed answers.
2727
28-
EXAMPLES:
28+
USAGE EXAMPLES:
2929
- user_input: Fetch https://docs.apify.com/platform/actors/running#builds
3030
- user_input: Fetch https://docs.apify.com/academy`,
3131
args: fetchApifyDocsToolArgsSchema,

src/tools/get-actor-output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ You can obtain the datasetId from an Actor run (e.g., after calling an Actor wit
7979
USAGE:
8080
- Use when you need to read Actor output data (full items or selected fields), especially when preview does not include all fields.
8181
82-
EXAMPLES:
82+
USAGE EXAMPLES:
8383
- user_input: Get data of my last Actor run
8484
- user_input: Get number_of_likes from my dataset
8585
- user_input: Return only crawl.statusCode and url from dataset 8TtYhCwKzQeQk7dJx

src/tools/get-html-skeleton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The results will include a chunked HTML skeleton if the content is large. Use th
4949
USAGE:
5050
- Use when you need a clean HTML structure to design selectors or parsers for scraping.
5151
52-
EXAMPLES:
52+
USAGE EXAMPLES:
5353
- user_input: Get HTML skeleton for https://example.com
5454
- user_input: Get next chunk of HTML skeleton for https://example.com (chunk=2)`,
5555
inputSchema: zodToJsonSchema(getHtmlSkeletonArgs),

src/tools/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can first discover Actors using the ${HelperTools.STORE_SEARCH} tool, then a
2323
USAGE:
2424
- Use when a user has chosen an Actor to work with and you need to make it available as a callable tool.
2525
26-
EXAMPLES:
26+
USAGE EXAMPLES:
2727
- user_input: Add apify/rag-web-browser as a tool
2828
- user_input: Add apify/instagram-scraper as a tool`,
2929
inputSchema: zodToJsonSchema(addToolArgsSchema),

src/tools/key_value_store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The results will include store metadata (ID, name, owner, access settings) and u
2626
USAGE:
2727
- Use when you need to inspect a store to locate records or understand its properties.
2828
29-
EXAMPLES:
29+
USAGE EXAMPLES:
3030
- user_input: Show info for key-value store username~my-store
3131
- user_input: Get details for store 8TtYhCwKzQeQk7dJx`,
3232
inputSchema: zodToJsonSchema(getKeyValueStoreArgs),
@@ -69,7 +69,7 @@ Use exclusiveStartKey and limit to paginate.
6969
USAGE:
7070
- Use when you need to discover what records exist in a store.
7171
72-
EXAMPLES:
72+
USAGE EXAMPLES:
7373
- user_input: List first 100 keys in store username~my-store
7474
- user_input: Continue listing keys in store 8TtYhCwKzQeQk7dJx from key data.json`,
7575
inputSchema: zodToJsonSchema(getKeyValueStoreKeysArgs),
@@ -110,7 +110,7 @@ The response preserves the original Content-Encoding; most clients handle decomp
110110
USAGE:
111111
- Use when you need to retrieve a specific record (JSON, text, or binary) from a store.
112112
113-
EXAMPLES:
113+
USAGE EXAMPLES:
114114
- user_input: Get record INPUT from store 8TtYhCwKzQeQk7dJx
115115
- user_input: Get record data.json from store username~my-store`,
116116
inputSchema: zodToJsonSchema(getKeyValueStoreRecordArgs),

0 commit comments

Comments
 (0)