Atom eve seo
This commit is contained in:
11
agent/tools/list_search_console_sites.ts
Normal file
11
agent/tools/list_search_console_sites.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineTool } from "eve/tools";
|
||||
import { listSites } from "../lib/search-console.js";
|
||||
|
||||
export default defineTool({
|
||||
description:
|
||||
"List the Search Console properties the configured service account can access. Useful to confirm access and the exact property name before querying.",
|
||||
inputSchema: { type: "object", additionalProperties: false, properties: {} } as const,
|
||||
async execute() {
|
||||
return listSites();
|
||||
},
|
||||
});
|
||||
15
agent/tools/query_search_analytics.ts
Normal file
15
agent/tools/query_search_analytics.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { defineTool } from "eve/tools";
|
||||
import {
|
||||
querySearchAnalytics,
|
||||
searchAnalyticsQueryInputSchema,
|
||||
type SearchAnalyticsQuery,
|
||||
} from "../lib/search-console.js";
|
||||
|
||||
export default defineTool({
|
||||
description:
|
||||
"Query Google Search Console Search Analytics for the property: the site's own real clicks, impressions, CTR, and average position by query, page, country, device, and date. First-party ground truth for striking-distance, low-CTR, cannibalization, and decay analysis.",
|
||||
inputSchema: searchAnalyticsQueryInputSchema,
|
||||
async execute(input: unknown) {
|
||||
return querySearchAnalytics(input as SearchAnalyticsQuery);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user