gs-advanced-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Scholar Advanced Search
Google Scholar 高级搜索
Construct and execute a Google Scholar search using URL parameters based on the user's natural language description.
根据用户的自然语言描述,构建并执行基于URL参数的Google Scholar搜索。
Arguments
输入参数
$ARGUMENTS is a natural language description of the search criteria, e.g.:
- "Search for Einstein's papers on relativity after 2020"
- "Find reviews about CRISPR in Nature"
- "Search for exact phrase 'machine learning' in title only"
$ARGUMENTS是搜索条件的自然语言描述,例如:
- "搜索爱因斯坦2020年以后关于相对论的论文"
- "查找《Nature》期刊中关于CRISPR的综述"
- "仅在标题中精确搜索'machine learning'"
Step 1: Parse search criteria into URL parameters
步骤1:将搜索条件解析为URL参数
Map the user's intent to Google Scholar URL parameters:
| Criteria | Parameter | Example |
|---|---|---|
| Keywords | | |
| Author | | |
| Journal/Source | | |
| Start year | | |
| End year | | |
| Exact phrase | | |
| Any of these words (OR) | | |
| Exclude words | | |
| Search scope | | |
| Results per page | | |
| Language | | |
Construction examples:
- "Einstein 2020 年以后在 Nature 上的论文" →
scholar?as_sauthors=Einstein&as_publication=Nature&as_ylo=2020&hl=en - "标题包含 CRISPR 的论文" →
scholar?q=CRISPR&as_occt=title&hl=en - "精确搜索 'deep learning' 排除 review" →
scholar?as_epq=deep+learning&as_eq=review&hl=en - "搜索 immunotherapy 或 checkpoint 相关论文" →
scholar?as_oq=immunotherapy+checkpoint&hl=en
Notes:
- When ,
as_sauthors, etc. are used,as_publicationcan be omitted or used for additional keywordsq - Always include for consistent results
hl=en - Use (default) to minimize CAPTCHA risk
num=10
将用户需求映射为Google Scholar的URL参数:
| 筛选条件 | URL参数 | 示例 |
|---|---|---|
| 关键词 | | |
| 作者 | | |
| 期刊/来源 | | |
| 起始年份 | | |
| 结束年份 | | |
| 精确短语 | | |
| 任意关键词(或) | | |
| 排除关键词 | | |
| 搜索范围 | | |
| 每页结果数 | | |
| 语言 | | |
参数构建示例:
- "Einstein 2020 年以后在 Nature 上的论文" →
scholar?as_sauthors=Einstein&as_publication=Nature&as_ylo=2020&hl=en - "标题包含 CRISPR 的论文" →
scholar?q=CRISPR&as_occt=title&hl=en - "精确搜索 'deep learning' 排除 review" →
scholar?as_epq=deep+learning&as_eq=review&hl=en - "搜索 immunotherapy 或 checkpoint 相关论文" →
scholar?as_oq=immunotherapy+checkpoint&hl=en
注意事项:
- 使用、
as_sauthors等参数时,as_publication可省略或用于补充关键词q - 始终添加以保证结果一致性
hl=en - 使用默认值来降低触发CAPTCHA验证的风险
num=10
Step 2: Navigate
步骤2:访问页面
Use :
mcp__chrome-devtools__navigate_page- url:
https://scholar.google.com/scholar?{CONSTRUCTED_PARAMS}
调用工具:
mcp__chrome-devtools__navigate_page- url:
https://scholar.google.com/scholar?{CONSTRUCTED_PARAMS}
Step 3: Extract results (evaluate_script)
步骤3:提取结果(执行脚本)
Same extraction script as gs-search step 2:
javascript
async () => {
for (let i = 0; i < 20; i++) {
if (document.querySelector('#gs_res_ccl') || document.querySelector('#gs_captcha_ccl')) break;
await new Promise(r => setTimeout(r, 500));
}
if (document.querySelector('#gs_captcha_ccl') || document.body.innerText.includes('unusual traffic')) {
return { error: 'captcha', message: 'Google Scholar requires CAPTCHA verification. Please complete it in your browser, then tell me to continue.' };
}
const items = document.querySelectorAll('#gs_res_ccl .gs_r.gs_or.gs_scl');
const results = Array.from(items).map((item, i) => {
const titleEl = item.querySelector('.gs_rt a');
const meta = item.querySelector('.gs_a')?.textContent || '';
const parts = meta.split(' - ');
const authors = parts[0]?.trim() || '';
const journalYear = parts[1]?.trim() || '';
const citedByEl = item.querySelector('.gs_fl a[href*="cites"]');
return {
n: i + 1,
title: titleEl?.textContent?.trim() || item.querySelector('.gs_rt')?.textContent?.trim() || '',
href: titleEl?.href || '',
authors,
journalYear,
citedBy: citedByEl?.textContent?.match(/\d+/)?.[0] || '0',
citedByUrl: citedByEl?.href || '',
dataCid: item.getAttribute('data-cid') || '',
fullTextUrl: (item.querySelector('.gs_ggs a') || item.querySelector('.gs_or_ggsm a'))?.href || '',
snippet: item.querySelector('.gs_rs')?.textContent?.trim()?.substring(0, 200) || ''
};
});
const totalText = document.querySelector('#gs_ab_md')?.textContent?.trim() || '';
const currentUrl = window.location.href;
return { total: totalText, resultCount: results.length, currentUrl, results };
}使用与gs-search步骤2相同的提取脚本:
javascript
async () => {
for (let i = 0; i < 20; i++) {
if (document.querySelector('#gs_res_ccl') || document.querySelector('#gs_captcha_ccl')) break;
await new Promise(r => setTimeout(r, 500));
}
if (document.querySelector('#gs_captcha_ccl') || document.body.innerText.includes('unusual traffic')) {
return { error: 'captcha', message: 'Google Scholar requires CAPTCHA verification. Please complete it in your browser, then tell me to continue.' };
}
const items = document.querySelectorAll('#gs_res_ccl .gs_r.gs_or.gs_scl');
const results = Array.from(items).map((item, i) => {
const titleEl = item.querySelector('.gs_rt a');
const meta = item.querySelector('.gs_a')?.textContent || '';
const parts = meta.split(' - ');
const authors = parts[0]?.trim() || '';
const journalYear = parts[1]?.trim() || '';
const citedByEl = item.querySelector('.gs_fl a[href*="cites"]');
return {
n: i + 1,
title: titleEl?.textContent?.trim() || item.querySelector('.gs_rt')?.textContent?.trim() || '',
href: titleEl?.href || '',
authors,
journalYear,
citedBy: citedByEl?.textContent?.match(/\d+/)?.[0] || '0',
citedByUrl: citedByEl?.href || '',
dataCid: item.getAttribute('data-cid') || '',
fullTextUrl: (item.querySelector('.gs_ggs a') || item.querySelector('.gs_or_ggsm a'))?.href || '',
snippet: item.querySelector('.gs_rs')?.textContent?.trim()?.substring(0, 200) || ''
};
});
const totalText = document.querySelector('#gs_ab_md')?.textContent?.trim() || '';
const currentUrl = window.location.href;
return { total: totalText, resultCount: results.length, currentUrl, results };
}Step 4: Report
步骤4:生成报告
Advanced search on Google Scholar:
Query parameters: {list the parameters used}
{total}
1. {title}
Authors: {authors} | {journalYear}
Cited by: {citedBy} | [Full text]({fullTextUrl})
Data-CID: {dataCid}
2. ...Always show the constructed URL parameters so the user understands how the query was built.
Google Scholar 高级搜索结果:
查询参数:{列出使用的参数}
{total}
1. {title}
作者:{authors} | {journalYear}
被引用次数:{citedBy} | [全文链接]({fullTextUrl})
Data-CID:{dataCid}
2. ...需始终展示构建好的URL参数,以便用户理解查询逻辑。
Notes
补充说明
- This skill uses 2 tool calls: +
navigate_pageevaluate_script - Google Scholar does NOT support publication type filtering (review, clinical trial, etc.) — use keywords instead
- Impact factor is not available in Google Scholar — use citation count as a proxy
- The key difference from gs-search is URL parameter construction — this skill translates natural language to Google Scholar query parameters
- 本技能调用2个工具:+
navigate_pageevaluate_script - Google Scholar不支持文献类型筛选(综述、临床试验等)——需通过关键词实现
- Google Scholar无法获取影响因子——可将被引用次数作为替代指标
- 与gs-search的核心区别在于URL参数构建——本技能可将自然语言转换为Google Scholar查询参数